nixpkgs/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 {
name = "FlameGraph-2017-05-11";
2015-11-28 05:07:31 +01:00
src = fetchFromGitHub {
owner = "brendangregg";
repo = "FlameGraph";
rev = "6b2a446dfb5d8027a0adf14adf71748aa502c247";
sha256 = "11j1776zsvhn9digqay1cbfhhxz01nv2hm44i4gnpqcxkada44l2";
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
};
}