Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib, rustPlatform, fetchFromGitHub }: 2 3rustPlatform.buildRustPackage rec { 4 pname = "cargo-hakari"; 5 version = "0.9.24"; 6 7 src = fetchFromGitHub { 8 owner = "guppy-rs"; 9 repo = "guppy"; 10 rev = "cargo-hakari-${version}"; 11 sha256 = "sha256-kg1iWku+zAXG9cCYCD4rqKzKNtDt0hMCnE5QyhJpLq8="; 12 }; 13 14 cargoHash = "sha256-hrWsQXjWzhSVVj+bUviGEn+E7Lytzgf1r8VmQxJQubE="; 15 16 cargoBuildFlags = [ "-p" "cargo-hakari" ]; 17 cargoTestFlags = [ "-p" "cargo-hakari" ]; 18 19 meta = with lib; { 20 description = "Manage workspace-hack packages to speed up builds in large workspaces."; 21 longDescription = '' 22 cargo hakari is a command-line application to manage workspace-hack crates. 23 Use it to speed up local cargo build and cargo check commands by 15-95%, 24 and cumulatively by 20-25% or more. 25 ''; 26 homepage = "https://crates.io/crates/cargo-hakari"; 27 changelog = "https://github.com/guppy-rs/guppy/blob/cargo-hakari-${version}/tools/cargo-hakari/CHANGELOG.md"; 28 license = with licenses; [ mit asl20 ]; 29 maintainers = with maintainers; [ figsoda macalinao ]; 30 }; 31}