depot/third_party/nixpkgs/pkgs/development/tools/rust/cargo-hakari/default.nix
Default email 9c6ee729d6 Project import generated by Copybara.
GitOrigin-RevId: 6cee3b5893090b0f5f0a06b4cf42ca4e60e5d222
2023-07-15 19:15:38 +02:00

31 lines
1.1 KiB
Nix

{ lib, rustPlatform, fetchFromGitHub }:
rustPlatform.buildRustPackage rec {
pname = "cargo-hakari";
version = "0.9.26";
src = fetchFromGitHub {
owner = "guppy-rs";
repo = "guppy";
rev = "cargo-hakari-${version}";
sha256 = "sha256-CQ0bpc5pmPMQMQ+8mcrUwo19zqyfkk5pE/lWRr9azXs=";
};
cargoHash = "sha256-F6+GRn3l849vRVKE1KhLMnxwR5NWu1b78xTxrHi817A=";
cargoBuildFlags = [ "-p" "cargo-hakari" ];
cargoTestFlags = [ "-p" "cargo-hakari" ];
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";
changelog = "https://github.com/guppy-rs/guppy/blob/cargo-hakari-${version}/tools/cargo-hakari/CHANGELOG.md";
license = with licenses; [ mit asl20 ];
maintainers = with maintainers; [ figsoda macalinao ];
};
}