2023-01-08 23:26:41 +00:00
|
|
|
{ lib, rustPlatform, fetchFromGitHub }:
|
2022-08-29 20:18:38 +00:00
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "cargo-hakari";
|
2023-10-04 22:13:23 +00:00
|
|
|
version = "0.9.28";
|
2022-08-29 20:18:38 +00:00
|
|
|
|
2023-01-08 23:26:41 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "guppy-rs";
|
|
|
|
repo = "guppy";
|
|
|
|
rev = "cargo-hakari-${version}";
|
2023-10-04 22:13:23 +00:00
|
|
|
sha256 = "sha256-mTemccM/C9M2kso9PNpd0UGEZJd/tBd1PjCpbDFFtNo=";
|
2022-08-29 20:18:38 +00:00
|
|
|
};
|
|
|
|
|
2023-10-04 22:13:23 +00:00
|
|
|
cargoHash = "sha256-UaSW9PZMUhqjvRM0/URHaOfofG5Ap3bvKgAHa+H+MFw=";
|
2023-01-08 23:26:41 +00:00
|
|
|
|
|
|
|
cargoBuildFlags = [ "-p" "cargo-hakari" ];
|
|
|
|
cargoTestFlags = [ "-p" "cargo-hakari" ];
|
2022-08-29 20:18:38 +00:00
|
|
|
|
|
|
|
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";
|
2022-11-03 16:14:26 +00:00
|
|
|
changelog = "https://github.com/guppy-rs/guppy/blob/cargo-hakari-${version}/tools/cargo-hakari/CHANGELOG.md";
|
2022-08-29 20:18:38 +00:00
|
|
|
license = with licenses; [ mit asl20 ];
|
2022-11-03 16:14:26 +00:00
|
|
|
maintainers = with maintainers; [ figsoda macalinao ];
|
2022-08-29 20:18:38 +00:00
|
|
|
};
|
|
|
|
}
|