Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
38 lines
830 B
Nix
38 lines
830 B
Nix
{
|
|
fetchFromGitHub,
|
|
lib,
|
|
rustPlatform,
|
|
}:
|
|
|
|
let
|
|
# Constants
|
|
pname = "cargo-profiler";
|
|
owner = "svenstaro";
|
|
|
|
# Version-specific variables
|
|
version = "0.2.0";
|
|
rev = "0a8ab772fd5c0f1579e4847c5d05aa443ffa2bc8";
|
|
hash = "sha256-ZRAbvSMrPtgaWy9RwlykQ3iiPxHCMh/tS5p67/4XqqA=";
|
|
cargoHash = "sha256-GrHH98jcJaEkCzHe1hoVAeZvTvE0kXdp0bPTIiiOYss=";
|
|
|
|
inherit (rustPlatform) buildRustPackage;
|
|
in
|
|
buildRustPackage {
|
|
inherit pname version;
|
|
|
|
src = fetchFromGitHub {
|
|
inherit owner rev hash;
|
|
repo = "cargo-profiler";
|
|
};
|
|
|
|
inherit cargoHash;
|
|
|
|
meta = with lib; {
|
|
description = "Cargo subcommand for profiling Rust binaries";
|
|
mainProgram = "cargo-profiler";
|
|
homepage = "https://github.com/svenstaro/cargo-profiler";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ lucperkins ];
|
|
};
|
|
}
|