exa: 0.7.0 -> 0.8.0

This commit is contained in:
dywedir 2017-10-03 13:17:40 +03:00
parent 3a86e15461
commit 61c4ff5c31

View File

@ -2,34 +2,17 @@
with rustPlatform; with rustPlatform;
let buildRustPackage rec {
# check for updates
zoneinfo_compiled = fetchFromGitHub {
owner = "rust-datetime";
repo = "zoneinfo-compiled";
rev = "f56921ea5e9f7cf065b1480ff270a1757c1f742f";
sha256 = "1xmw7c5f5n45lkxnyxp4llfv1bnqhc876w98165ccdbbiylfkw26";
};
cargoPatch = ''
# use non-git dependencies
patch Cargo.toml <<EOF
46c46
< git = "https://github.com/rust-datetime/zoneinfo-compiled.git"
---
> path = "${zoneinfo_compiled}"
EOF
'';
in buildRustPackage rec {
name = "exa-${version}"; name = "exa-${version}";
version = "0.7.0"; version = "0.8.0";
depsSha256 = "0j320hhf2vqaha137pjj4pyiw6d3p5h3nhy3pl9vna1g5mnl1sn7"; depsSha256 = "0yz41prkjs5rmvdhr9k58a52l7hvwy5mfg8rcpsq4ybgf601lja2";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "ogham"; owner = "ogham";
repo = "exa"; repo = "exa";
rev = "v${version}"; rev = "v${version}";
sha256 = "0i9psgna2wwv9qyw9cif4qznqiyi16vl763hpm2yr195aj700339"; sha256 = "0jy11a3xfnfnmyw1kjmv4ffavhijs8c940kw24vafklnacx5n88m";
}; };
nativeBuildInputs = [ cmake pkgconfig perl ]; nativeBuildInputs = [ cmake pkgconfig perl ];
@ -38,15 +21,6 @@ in buildRustPackage rec {
# Some tests fail, but Travis ensures a proper build # Some tests fail, but Travis ensures a proper build
doCheck = false; doCheck = false;
cargoUpdateHook = ''
${cargoPatch}
'';
cargoDepsHook = ''
pushd $sourceRoot
${cargoPatch}
popd
'';
meta = with stdenv.lib; { meta = with stdenv.lib; {
description = "Replacement for 'ls' written in Rust"; description = "Replacement for 'ls' written in Rust";
longDescription = '' longDescription = ''
@ -57,7 +31,7 @@ in buildRustPackage rec {
for a directory, or recursing into directories with a tree view. exa is for a directory, or recursing into directories with a tree view. exa is
written in Rust, so its small, fast, and portable. written in Rust, so its small, fast, and portable.
''; '';
homepage = http://the.exa.website; homepage = https://the.exa.website;
license = licenses.mit; license = licenses.mit;
maintainer = [ maintainers.ehegnes ]; maintainer = [ maintainers.ehegnes ];
}; };