cargo-flamegraph: fix runtime dep: linux-perf
This commit is contained in:
parent
eeaf1f702d
commit
057b94a3d2
|
@ -1,4 +1,4 @@
|
||||||
{ stdenv, fetchFromGitHub, rustPlatform
|
{ lib, stdenv, fetchFromGitHub, rustPlatform, makeWrapper, perf
|
||||||
, Security
|
, Security
|
||||||
}:
|
}:
|
||||||
|
|
||||||
|
@ -15,11 +15,17 @@ rustPlatform.buildRustPackage rec {
|
||||||
|
|
||||||
cargoSha256 = "0kmw2n4j5bisac0bv3npbwfz2z00ncd6w8ichwaz5hac5mi1a72f";
|
cargoSha256 = "0kmw2n4j5bisac0bv3npbwfz2z00ncd6w8ichwaz5hac5mi1a72f";
|
||||||
|
|
||||||
buildInputs = stdenv.lib.optionals stdenv.isDarwin [
|
nativeBuildInputs = lib.optionals stdenv.isLinux [ makeWrapper ];
|
||||||
|
buildInputs = lib.optionals stdenv.isDarwin [
|
||||||
Security
|
Security
|
||||||
];
|
];
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
postFixup = lib.optionalString stdenv.isLinux ''
|
||||||
|
wrapProgram $out/bin/cargo-flamegraph \
|
||||||
|
--suffix PATH ':' ${perf}/bin
|
||||||
|
'';
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
description = "Easy flamegraphs for Rust projects and everything else, without Perl or pipes <3";
|
description = "Easy flamegraphs for Rust projects and everything else, without Perl or pipes <3";
|
||||||
homepage = https://github.com/ferrous-systems/flamegraph;
|
homepage = https://github.com/ferrous-systems/flamegraph;
|
||||||
license = with licenses; [ asl20 /* or */ mit ];
|
license = with licenses; [ asl20 /* or */ mit ];
|
||||||
|
|
|
@ -8680,6 +8680,7 @@ in
|
||||||
|
|
||||||
cargo-flamegraph = callPackage ../development/tools/cargo-flamegraph {
|
cargo-flamegraph = callPackage ../development/tools/cargo-flamegraph {
|
||||||
inherit (darwin.apple_sdk.frameworks) Security;
|
inherit (darwin.apple_sdk.frameworks) Security;
|
||||||
|
inherit (linuxPackages) perf;
|
||||||
};
|
};
|
||||||
|
|
||||||
carnix = (callPackage ../build-support/rust/carnix.nix { }).carnix { };
|
carnix = (callPackage ../build-support/rust/carnix.nix { }).carnix { };
|
||||||
|
|
Loading…
Reference in New Issue