eb11feaa0b
Changes the default fetcher in the Rust Platform to be the newer `fetchCargoTarball`, and changes every application using the current default to instead opt out. This commit does not change any hashes or cause any rebuilds. Once integrated, we will start deleting the opt-outs and recomputing hashes. See #79975 for details.
44 lines
1.4 KiB
Nix
44 lines
1.4 KiB
Nix
{ stdenv, fetchFromGitHub, rustPlatform }:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "fd";
|
|
version = "7.4.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "sharkdp";
|
|
repo = "fd";
|
|
rev = "v${version}";
|
|
sha256 = "108p1p9bxhg4qzwfs6wqcakcvlpqw3w498jkz1vhmg6jp1mbmgdr";
|
|
};
|
|
|
|
# Delete this on next update; see #79975 for details
|
|
legacyCargoFetcher = true;
|
|
|
|
cargoSha256 = "0ylanxcb1vrhvm9h3lvq8nh28362wi5hjy0pqdv5lh40pphcknnz";
|
|
|
|
preFixup = ''
|
|
install -Dm644 "$src/doc/fd.1" "$out/man/man1/fd.1"
|
|
|
|
install -Dm644 target/release/build/fd-find-*/out/fd.bash \
|
|
"$out/share/bash-completion/completions/fd.bash"
|
|
install -Dm644 target/release/build/fd-find-*/out/fd.fish \
|
|
"$out/share/fish/vendor_completions.d/fd.fish"
|
|
install -Dm644 target/release/build/fd-find-*/out/_fd \
|
|
"$out/share/zsh/site-functions/_fd"
|
|
'';
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "A simple, fast and user-friendly alternative to find";
|
|
longDescription = ''
|
|
`fd` is a simple, fast and user-friendly alternative to `find`.
|
|
|
|
While it does not seek to mirror all of `find`'s powerful functionality,
|
|
it provides sensible (opinionated) defaults for 80% of the use cases.
|
|
'';
|
|
homepage = "https://github.com/sharkdp/fd";
|
|
license = with licenses; [ asl20 /* or */ mit ];
|
|
maintainers = with maintainers; [ dywedir globin ];
|
|
platforms = platforms.all;
|
|
};
|
|
}
|