2020-03-19 01:43:22 +00:00
|
|
|
{ lib, fetchFromGitHub, rustPlatform, installShellFiles }:
|
2017-07-30 23:21:36 +00:00
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
2019-08-31 11:41:23 +00:00
|
|
|
pname = "fd";
|
2022-01-29 20:51:59 +00:00
|
|
|
version = "8.3.2";
|
2017-07-30 23:21:36 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "sharkdp";
|
|
|
|
repo = "fd";
|
|
|
|
rev = "v${version}";
|
2022-01-29 20:51:59 +00:00
|
|
|
sha256 = "sha256-aNAV0FVZEqtTdgvnLiS1ixtsPU48rUOZdmj07MiMVKg=";
|
2017-07-30 23:21:36 +00:00
|
|
|
};
|
|
|
|
|
2022-01-29 20:51:59 +00:00
|
|
|
cargoSha256 = "sha256-A8MAgV7/6Vf+PaND+gaZz8IEq4Cw9ETEY+lF8R77lA4=";
|
2017-07-30 23:21:36 +00:00
|
|
|
|
2020-03-19 01:43:22 +00:00
|
|
|
nativeBuildInputs = [ installShellFiles ];
|
|
|
|
|
2017-10-26 21:08:49 +00:00
|
|
|
preFixup = ''
|
2020-09-22 02:26:12 +00:00
|
|
|
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}
|
2020-12-06 19:31:22 +00:00
|
|
|
installShellCompletion --zsh contrib/completion/_fd
|
2017-10-26 21:08:49 +00:00
|
|
|
'';
|
|
|
|
|
2020-03-19 01:43:22 +00:00
|
|
|
meta = with lib; {
|
2017-07-30 23:21:36 +00:00
|
|
|
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 21:08:49 +00:00
|
|
|
license = with licenses; [ asl20 /* or */ mit ];
|
2020-06-08 03:24:35 +00:00
|
|
|
maintainers = with maintainers; [ dywedir globin ma27 zowoq ];
|
2017-07-30 23:21:36 +00:00
|
|
|
};
|
|
|
|
}
|