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

38 lines
1.1 KiB
Nix
Raw Normal View History

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