2019-03-08 19:59:12 +01:00
|
|
|
{ stdenv, fetchFromGitHub, rustPlatform }:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
2019-03-17 20:20:03 +01:00
|
|
|
pname = "lsd";
|
2019-05-24 20:49:00 +02:00
|
|
|
version = "0.15.1";
|
2019-03-08 19:59:12 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Peltoche";
|
2019-05-23 14:13:52 +02:00
|
|
|
repo = pname;
|
2019-03-08 19:59:12 +01:00
|
|
|
rev = version;
|
2019-05-24 20:49:00 +02:00
|
|
|
sha256 = "1m8jcmdp66n0vgyzfgknmg4rwc41y9fd4vjgapaggg6lc9cc68gp";
|
2019-03-08 19:59:12 +01:00
|
|
|
};
|
|
|
|
|
2019-05-23 14:13:52 +02:00
|
|
|
cargoSha256 = "095jf63jyd485fk8pl7grvycn7pkwnxdm5lwkmfl9p46m8q1qqr2";
|
2019-03-08 19:59:12 +01:00
|
|
|
|
|
|
|
preFixup = ''
|
|
|
|
install -Dm644 -t $out/share/zsh/site-functions/ target/release/build/lsd-*/out/_lsd
|
|
|
|
install -Dm644 -t $out/share/fish/vendor_completions.d/ target/release/build/lsd-*/out/lsd.fish
|
|
|
|
install -Dm644 -t $out/share/bash-completion/completions/ target/release/build/lsd-*/out/lsd.bash
|
|
|
|
'';
|
|
|
|
|
2019-03-17 20:20:03 +01:00
|
|
|
# Some tests fail, but Travis ensures a proper build
|
|
|
|
doCheck = false;
|
|
|
|
|
2019-03-08 19:59:12 +01:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = https://github.com/Peltoche/lsd;
|
|
|
|
description = "The next gen ls command";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = [ maintainers.marsam ];
|
|
|
|
};
|
|
|
|
}
|