diff options
Diffstat (limited to 'pkgs/tools/misc/fuc/default.nix')
-rw-r--r-- | pkgs/tools/misc/fuc/default.nix | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/pkgs/tools/misc/fuc/default.nix b/pkgs/tools/misc/fuc/default.nix new file mode 100644 index 0000000000000..00d95add4f39a --- /dev/null +++ b/pkgs/tools/misc/fuc/default.nix @@ -0,0 +1,35 @@ +{ lib +, rustPlatform +, fetchFromGitHub +, clippy +, rustfmt +}: + +rustPlatform.buildRustPackage rec { + pname = "fuc"; + version = "1.1.6"; + + src = fetchFromGitHub { + owner = "SUPERCILEX"; + repo = "fuc"; + rev = version; + hash = "sha256-kbEIZljIWs/GYOQ/XCBgWsBcEwm05bf7bZmAwq+eWXo="; + }; + + patches = [ ./add_missing_feature.patch ]; + + cargoHash = "sha256-AD3LdBMmyf6xM7sWUDxYZs3NltnAkEfAdxYLAbnRM4M="; + + RUSTC_BOOTSTRAP = 1; + + cargoBuildFlags = [ "--workspace" "--bin cpz" "--bin rmz" ]; + + nativeCheckInputs = [ clippy rustfmt ]; + + meta = with lib; { + description = "Modern, performance focused unix commands"; + homepage = "https://github.com/SUPERCILEX/fuc"; + license = licenses.asl20; + maintainers = with maintainers; [ dit7ya ]; + }; +} |