1 { lib, rustPlatform, fetchFromGitHub, installShellFiles, rust-jemalloc-sys, testers, fd }:
3 rustPlatform.buildRustPackage rec {
7 src = fetchFromGitHub {
11 hash = "sha256-9fL2XV3Vre2uo8Co3tlHYIvpNHNOh5TuvZggkWOxm5A=";
14 cargoHash = "sha256-3TbsPfAn/GcGASc0RCcyAeUiD4RUtvTATdTYhKdBxvo=";
16 nativeBuildInputs = [ installShellFiles ];
18 buildInputs = [ rust-jemalloc-sys ];
22 "--skip=test_owner_current_group"
23 # Fails if the filesystem performs UTF-8 validation (such as ZFS with utf8only=on)
24 "--skip=test_exec_invalid_utf8"
25 "--skip=test_invalid_utf8"
29 installManPage doc/fd.1
31 installShellCompletion --cmd fd \
32 --bash <($out/bin/fd --gen-completions bash) \
33 --fish <($out/bin/fd --gen-completions fish)
34 installShellCompletion --zsh contrib/completion/_fd
37 passthru.tests.version = testers.testVersion {
42 description = "A simple, fast and user-friendly alternative to find";
44 `fd` is a simple, fast and user-friendly alternative to `find`.
46 While it does not seek to mirror all of `find`'s powerful functionality,
47 it provides sensible (opinionated) defaults for 80% of the use cases.
49 homepage = "https://github.com/sharkdp/fd";
50 changelog = "https://github.com/sharkdp/fd/blob/v${version}/CHANGELOG.md";
51 license = with licenses; [ asl20 /* or */ mit ];
52 maintainers = with maintainers; [ dywedir figsoda globin ma27 zowoq ];