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

29 lines
682 B
Nix
Raw Normal View History

2015-11-28 05:07:31 +01:00
{ stdenv, fetchFromGitHub, perl }:
stdenv.mkDerivation {
2017-07-19 15:20:38 +02:00
name = "FlameGraph-2017-07-01";
2015-11-28 05:07:31 +01:00
src = fetchFromGitHub {
owner = "brendangregg";
repo = "FlameGraph";
2017-07-19 15:20:38 +02:00
rev = "a93d905911c07c96a73b35ddbcb5ddb2f39da4b6";
sha256 = "07z2ffnab41dz833wwgr875vjccqyh0238357g7ml1yg5445x2jy";
2015-11-28 05:07:31 +01:00
};
buildInputs = [ perl ];
installPhase = ''
mkdir -p $out/bin
for x in $src/*.pl $src/*.awk $src/dev/*.pl $src/dev/*.d; do
cp $x $out/bin
done
'';
meta = with stdenv.lib; {
license = licenses.cddl;
homepage = http://www.brendangregg.com/flamegraphs.html;
description = "Visualization for profiled code";
platforms = platforms.unix;
2015-11-28 05:07:31 +01:00
};
}