1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-25 07:00:43 +00:00
nixpkgs/pkgs/tools/misc/lsd/default.nix

32 lines
944 B
Nix
Raw Normal View History

2019-03-08 18:59:12 +00:00
{ stdenv, fetchFromGitHub, rustPlatform }:
rustPlatform.buildRustPackage rec {
2019-03-17 19:20:03 +00:00
pname = "lsd";
2019-08-02 19:37:23 +01:00
version = "0.16.0";
2019-03-08 18:59:12 +00:00
src = fetchFromGitHub {
owner = "Peltoche";
2019-05-23 13:13:52 +01:00
repo = pname;
2019-03-08 18:59:12 +00:00
rev = version;
2019-08-02 19:37:23 +01:00
sha256 = "0fh5rz6slyjzz03bpjcl9gplk36vm7qcc0i0gvhsikwvw0cf3hym";
2019-03-08 18:59:12 +00:00
};
2019-08-02 19:37:23 +01:00
cargoSha256 = "0377jbjkrrjss3w8xmjsjjynycpdk19grp20hffxschg4ryvniin";
2019-03-08 18:59:12 +00: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 19:20:03 +00:00
# Some tests fail, but Travis ensures a proper build
doCheck = false;
2019-03-08 18:59:12 +00:00
meta = with stdenv.lib; {
homepage = https://github.com/Peltoche/lsd;
description = "The next gen ls command";
license = licenses.asl20;
maintainers = [ maintainers.marsam ];
};
}