nixpkgs/pkgs/development/tools/flamegraph/default.nix

34 lines
769 B
Nix
Raw Normal View History

{ lib, stdenv, fetchFromGitHub, perl }:
2015-11-28 04:07:31 +00:00
2019-10-09 19:47:39 +01:00
stdenv.mkDerivation rec {
pname = "FlameGraph";
version = "2019-02-16";
2015-11-28 04:07:31 +00:00
src = fetchFromGitHub {
owner = "brendangregg";
2019-10-09 19:47:39 +01:00
repo = pname;
rev = "1b1c6deede9c33c5134c920bdb7a44cc5528e9a7";
sha256 = "1flvkmv2gbb003d51myl7r0wyhyw1bk9p7v19xagb8xjj4ci947b";
2015-11-28 04:07:31 +00:00
};
buildInputs = [ perl ];
installPhase = ''
2019-10-09 19:47:39 +01:00
runHook preInstall
2015-11-28 04:07:31 +00:00
mkdir -p $out/bin
for x in $src/*.pl $src/*.awk $src/dev/*.pl $src/dev/*.d; do
cp $x $out/bin
done
2019-10-09 19:47:39 +01:00
runHook postInstall
2015-11-28 04:07:31 +00:00
'';
meta = with lib; {
2019-10-09 19:47:39 +01:00
license = with licenses; [ asl20 cddl gpl2Plus ];
homepage = "http://www.brendangregg.com/flamegraphs.html";
2015-11-28 04:07:31 +00:00
description = "Visualization for profiled code";
platforms = platforms.unix;
2015-11-28 04:07:31 +00:00
};
}