git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #108064 from oxalica/bump/cargo-flamegraph

cargo-flamegraph: 0.3.0 -> 0.4.0 and clean up

commit0d9e4d223f92c33adf0e7edc483b7d887142717a authorMaximilian Bosch <maximilian@mbosch.me> dateSun 3 Jan 2021, 19:17 (6 years ago) parent16b53ed9555996
1 file changed+10−6
pkgs/development/tools/cargo-flamegraph/default.nix+10−6
pkgs/development/tools/cargo-flamegraph/default.nix+10−6
@@ -1,19 +1,19 @@
1−{ lib, stdenv, fetchFromGitHub, rustPlatform, makeWrapper, perf
1+{ lib, stdenv, fetchFromGitHub, rustPlatform, makeWrapper, perf, nix-update-script
22, Security
33}:
44
55rustPlatform.buildRustPackage rec {
66 pname = "cargo-flamegraph";
7− version = "0.3.0";
7+ version = "0.4.0";
88
99 src = fetchFromGitHub {
1010 owner = "flamegraph-rs";
1111 repo = "flamegraph";
1212 rev = "v${version}";
13− sha256 = "0d6k2qr76p93na39j4zbcpc9kaswd806wrqhcwisqxdrcxrjbwhk";
13+ sha256 = "sha256-IpmvFUWNaFQ1ls7u625vvj1TnRYXR+X1mAGdBcwRFLk=";
1414 };
1515
16− cargoSha256 = "1qz4a1b58j3bv3akqvc3bcgvqq4bi8cbm3gzws6a52dz7ycrgq46";
16+ cargoSha256 = "sha256-2YHkEQZqjKEvg4h9kIVhqmgq+SMF1c3r8UbSQivZh7w=";
1717
1818 nativeBuildInputs = lib.optionals stdenv.isLinux [ makeWrapper ];
1919 buildInputs = lib.optionals stdenv.isDarwin [
@@ -22,11 +22,15 @@ rustPlatform.buildRustPackage rec {
2222
2323 postFixup = lib.optionalString stdenv.isLinux ''
2424 wrapProgram $out/bin/cargo-flamegraph \
25− --suffix PATH ':' ${perf}/bin
25+ --set-default PERF ${perf}/bin/perf
2626 wrapProgram $out/bin/flamegraph \
27− --suffix PATH ':' ${perf}/bin
27+ --set-default PERF ${perf}/bin/perf
2828 '';
2929
30+ passthru.updateScript = nix-update-script {
31+ attrPath = pname;
32+ };
33+
3034 meta = with lib; {
3135 description = "Easy flamegraphs for Rust projects and everything else, without Perl or pipes <3";
3236 homepage = "https://github.com/ferrous-systems/flamegraph";