diff options
author | Mario Rodas <marsam@users.noreply.github.com> | 2019-03-08 13:59:12 -0500 |
---|---|---|
committer | Mario Rodas <marsam@users.noreply.github.com> | 2019-03-09 07:52:58 -0500 |
commit | 10a2981e36c2001645937ab6fe50879845979cf8 (patch) | |
tree | 2e790dc9b8d7a5e5864276331b127e4920038f54 /pkgs/tools/misc/lsd/default.nix | |
parent | d20f21de9c7fade18d2a6be3156ba9e151ea61cf (diff) | |
download | nixpkgs-10a2981e36c2001645937ab6fe50879845979cf8.tar nixpkgs-10a2981e36c2001645937ab6fe50879845979cf8.tar.gz nixpkgs-10a2981e36c2001645937ab6fe50879845979cf8.tar.bz2 nixpkgs-10a2981e36c2001645937ab6fe50879845979cf8.tar.lz nixpkgs-10a2981e36c2001645937ab6fe50879845979cf8.tar.xz nixpkgs-10a2981e36c2001645937ab6fe50879845979cf8.tar.zst nixpkgs-10a2981e36c2001645937ab6fe50879845979cf8.zip |
lsd: init at 0.13.0
Diffstat (limited to 'pkgs/tools/misc/lsd/default.nix')
-rw-r--r-- | pkgs/tools/misc/lsd/default.nix | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/pkgs/tools/misc/lsd/default.nix b/pkgs/tools/misc/lsd/default.nix new file mode 100644 index 00000000000..6ecca1631fe --- /dev/null +++ b/pkgs/tools/misc/lsd/default.nix @@ -0,0 +1,28 @@ +{ stdenv, fetchFromGitHub, rustPlatform }: + +rustPlatform.buildRustPackage rec { + name = "lsd-${version}"; + version = "0.13.0"; + + src = fetchFromGitHub { + owner = "Peltoche"; + repo = "lsd"; + rev = version; + sha256 = "0s0pgnhzhkjm78cp12jscpld0m2mslin5yb273wzdvx4wax2s17z"; + }; + + cargoSha256 = "0pg4wsk2qaljrqklnl5p3iv83314wmybyxsn1prvsjsl4b64mil9"; + + 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 + ''; + + meta = with stdenv.lib; { + homepage = https://github.com/Peltoche/lsd; + description = "The next gen ls command"; + license = licenses.asl20; + maintainers = [ maintainers.marsam ]; + }; +} |