3
0
Fork 0
forked from mirrors/nixpkgs

fd: 6.0.0 -> 6.1.0

This commit is contained in:
dywedir 2017-12-11 15:20:23 +02:00
parent 05f159b624
commit 743f6b64e3

View file

@ -2,28 +2,23 @@
rustPlatform.buildRustPackage rec {
name = "fd-${version}";
version = "6.0.0";
version = "6.1.0";
src = fetchFromGitHub {
owner = "sharkdp";
repo = "fd";
rev = "v${version}";
sha256 = "1pzb6ha9c89zq6nxx0zsyv24diix4z23p8lf7113bfili3as3k5q";
sha256 = "1md6k531ymsg99zc6y8lni4cpfz4rcklwgibq1i5xdam3hs1n2jg";
};
cargoSha256 = "0y4svzv1y94baciiy08byhywwfshdfqn3nx0c4z23i7ashy8yhnf";
buildPhase = ''
# do not pass --frozen
cargo build --release
'';
cargoSha256 = "00n2j0mjmd4lrfygnv90mixv3hfv1z56zyqcm957cwq08qavqzf1";
preFixup = ''
mkdir -p "$out/man/man1"
cp "$src/doc/fd.1" "$out/man/man1"
mkdir -p "$out/share/"{bash-completion/completions,fish/completions,zsh/site-functions}
cp target/release/build/fd-find-*/out/fd.bash-completion "$out/share/bash-completion/completions/"
cp target/release/build/fd-find-*/out/fd.bash "$out/share/bash-completion/completions/"
cp target/release/build/fd-find-*/out/fd.fish "$out/share/fish/completions/"
cp target/release/build/fd-find-*/out/_fd "$out/share/zsh/site-functions/"
'';