forked from mirrors/nixpkgs
fd: 6.0.0 -> 6.1.0
This commit is contained in:
parent
05f159b624
commit
743f6b64e3
|
@ -2,28 +2,23 @@
|
||||||
|
|
||||||
rustPlatform.buildRustPackage rec {
|
rustPlatform.buildRustPackage rec {
|
||||||
name = "fd-${version}";
|
name = "fd-${version}";
|
||||||
version = "6.0.0";
|
version = "6.1.0";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "sharkdp";
|
owner = "sharkdp";
|
||||||
repo = "fd";
|
repo = "fd";
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
sha256 = "1pzb6ha9c89zq6nxx0zsyv24diix4z23p8lf7113bfili3as3k5q";
|
sha256 = "1md6k531ymsg99zc6y8lni4cpfz4rcklwgibq1i5xdam3hs1n2jg";
|
||||||
};
|
};
|
||||||
|
|
||||||
cargoSha256 = "0y4svzv1y94baciiy08byhywwfshdfqn3nx0c4z23i7ashy8yhnf";
|
cargoSha256 = "00n2j0mjmd4lrfygnv90mixv3hfv1z56zyqcm957cwq08qavqzf1";
|
||||||
|
|
||||||
buildPhase = ''
|
|
||||||
# do not pass --frozen
|
|
||||||
cargo build --release
|
|
||||||
'';
|
|
||||||
|
|
||||||
preFixup = ''
|
preFixup = ''
|
||||||
mkdir -p "$out/man/man1"
|
mkdir -p "$out/man/man1"
|
||||||
cp "$src/doc/fd.1" "$out/man/man1"
|
cp "$src/doc/fd.1" "$out/man/man1"
|
||||||
|
|
||||||
mkdir -p "$out/share/"{bash-completion/completions,fish/completions,zsh/site-functions}
|
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.fish "$out/share/fish/completions/"
|
||||||
cp target/release/build/fd-find-*/out/_fd "$out/share/zsh/site-functions/"
|
cp target/release/build/fd-find-*/out/_fd "$out/share/zsh/site-functions/"
|
||||||
'';
|
'';
|
||||||
|
|
Loading…
Reference in a new issue