about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/tools/cargo-flamegraph/default.nix
blob: 442035d0f5f8c1ec7f21670ea335558532963853 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
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;
  };
}