nixpkgs-suyu/pkgs/tools/misc/lsd/default.nix

32 lines
944 B
Nix
Raw Normal View History

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-08-02 20:37:23 +02:00
version = "0.16.0";
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-08-02 20:37:23 +02:00
sha256 = "0fh5rz6slyjzz03bpjcl9gplk36vm7qcc0i0gvhsikwvw0cf3hym";
2019-03-08 19:59:12 +01:00
};
2019-08-02 20:37:23 +02:00
cargoSha256 = "0377jbjkrrjss3w8xmjsjjynycpdk19grp20hffxschg4ryvniin";
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 ];
};
}