Merge pull request #64567 from killercup/cargo-flamegraph-0.1.13
cargo-flamegraph: init at 0.1.13
This commit is contained in:
commit
aaea4ebda2
2 changed files with 33 additions and 0 deletions
29
pkgs/development/tools/cargo-flamegraph/default.nix
Normal file
29
pkgs/development/tools/cargo-flamegraph/default.nix
Normal file
|
@ -0,0 +1,29 @@
|
|||
{ stdenv, fetchFromGitHub, rustPlatform
|
||||
, Security
|
||||
}:
|
||||
|
||||
rustPlatform.buildRustPackage rec {
|
||||
pname = "cargo-flamegraph";
|
||||
version = "0.1.13";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "ferrous-systems";
|
||||
repo = "flamegraph";
|
||||
rev = version;
|
||||
sha256 = "1s0jnj78fqz5hlgq656rr2s9ykmia51b89iffadiw6c2aw4fhv1a";
|
||||
};
|
||||
|
||||
cargoSha256 = "0kmw2n4j5bisac0bv3npbwfz2z00ncd6w8ichwaz5hac5mi1a72f";
|
||||
|
||||
buildInputs = stdenv.lib.optionals stdenv.isDarwin [
|
||||
Security
|
||||
];
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Easy flamegraphs for Rust projects and everything else, without Perl or pipes <3";
|
||||
homepage = https://github.com/ferrous-systems/flamegraph;
|
||||
license = with licenses; [ asl20 /* or */ mit ];
|
||||
maintainers = with maintainers; [ killercup ];
|
||||
platforms = platforms.all;
|
||||
};
|
||||
}
|
|
@ -8062,6 +8062,10 @@ in
|
|||
inherit (darwin) cf-private;
|
||||
};
|
||||
|
||||
cargo-flamegraph = callPackage ../development/tools/cargo-flamegraph {
|
||||
inherit (darwin.apple_sdk.frameworks) Security;
|
||||
};
|
||||
|
||||
carnix = (callPackage ../build-support/rust/carnix.nix { }).carnix { };
|
||||
|
||||
defaultCrateOverrides = callPackage ../build-support/rust/default-crate-overrides.nix { };
|
||||
|
|
Loading…
Reference in a new issue