eeb71630af
GitOrigin-RevId: 636051e353461f073ac55d5d42c1ed062a345046
37 lines
1.1 KiB
Nix
37 lines
1.1 KiB
Nix
{ lib, fetchFromGitHub, rustPlatform, installShellFiles }:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "fd";
|
|
version = "8.5.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "sharkdp";
|
|
repo = "fd";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-zS0AEGd+4YmwId6zJ08q3xYzXF+9K0XL8XWeXGaEJxA=";
|
|
};
|
|
|
|
cargoSha256 = "sha256-upI/cDtqe+P7PxoWZZddPqaic2pWclpTC/ATjR7sXx8=";
|
|
|
|
nativeBuildInputs = [ installShellFiles ];
|
|
|
|
preFixup = ''
|
|
installManPage doc/fd.1
|
|
|
|
installShellCompletion $releaseDir/build/fd-find-*/out/fd.{bash,fish}
|
|
installShellCompletion --zsh contrib/completion/_fd
|
|
'';
|
|
|
|
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";
|
|
license = with licenses; [ asl20 /* or */ mit ];
|
|
maintainers = with maintainers; [ dywedir globin ma27 zowoq ];
|
|
};
|
|
}
|