nixpkgs/pkgs/tools/misc/fd/default.nix

38 lines
1.1 KiB
Nix
Raw Normal View History

2020-03-19 01:43:22 +00:00
{ lib, fetchFromGitHub, rustPlatform, installShellFiles }:
rustPlatform.buildRustPackage rec {
2019-08-31 12:41:23 +01:00
pname = "fd";
2020-12-08 21:06:33 +00:00
version = "8.2.1";
src = fetchFromGitHub {
owner = "sharkdp";
repo = "fd";
rev = "v${version}";
2020-12-08 21:06:33 +00:00
sha256 = "00vlifbri021z8nf7xvbaay8mqvnq58h19va9bqr5lhsqj1f82wq";
};
cargoSha256 = "0n6xqd30b8aiqrvqrmy7q56nh62nx2j1a3yq2dlpc19i2mfw2qd8";
2020-03-19 01:43:22 +00:00
nativeBuildInputs = [ installShellFiles ];
2017-10-26 22:08:49 +01:00
preFixup = ''
installManPage doc/fd.1
2020-03-19 01:43:22 +00:00
2020-03-20 06:46:50 +00:00
installShellCompletion $releaseDir/build/fd-find-*/out/fd.{bash,fish}
installShellCompletion --zsh contrib/completion/_fd
2017-10-26 22:08:49 +01:00
'';
2020-03-19 01:43:22 +00:00
meta = with 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";
2017-10-26 22:08:49 +01:00
license = with licenses; [ asl20 /* or */ mit ];
2020-06-08 04:24:35 +01:00
maintainers = with maintainers; [ dywedir globin ma27 zowoq ];
};
}