diff --git a/pkgs/development/tools/rust/cargo-hakari/default.nix b/pkgs/development/tools/rust/cargo-hakari/default.nix new file mode 100644 index 000000000000..492bebaa83d6 --- /dev/null +++ b/pkgs/development/tools/rust/cargo-hakari/default.nix @@ -0,0 +1,25 @@ +{ lib, fetchCrate, rustPlatform }: + +rustPlatform.buildRustPackage rec { + pname = "cargo-hakari"; + version = "0.9.14"; + + src = fetchCrate { + inherit pname version; + sha256 = "sha256-C4UBvxGZDpGfYokTzHQNkUkZqBNuKbE4pzOJ04sTDoY="; + }; + + cargoHash = "sha256-eQrRBmlP206MKDlXxcJ64jD6/6mv3V/sv9TsybIx+8Q="; + + meta = with lib; { + description = "Manage workspace-hack packages to speed up builds in large workspaces."; + longDescription = '' + cargo hakari is a command-line application to manage workspace-hack crates. + Use it to speed up local cargo build and cargo check commands by 15-95%, + and cumulatively by 20-25% or more. + ''; + homepage = "https://crates.io/crates/cargo-hakari"; + license = with licenses; [ mit asl20 ]; + maintainers = with maintainers; [ macalinao ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 207c7206c0a6..85038693ab38 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -14418,6 +14418,7 @@ with pkgs; inherit (darwin.apple_sdk.frameworks) AppKit; }; cargo-expand = callPackage ../development/tools/rust/cargo-expand { }; + cargo-hakari = callPackage ../development/tools/rust/cargo-hakari { }; cargo-feature = callPackage ../development/tools/rust/cargo-feature { }; cargo-flash = callPackage ../development/tools/rust/cargo-flash { inherit (darwin.apple_sdk.frameworks) AppKit;