2015-11-28 05:07:31 +01:00
|
|
|
{ stdenv, fetchFromGitHub, perl }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2017-05-11 07:28:44 +02:00
|
|
|
name = "FlameGraph-2017-05-11";
|
2015-11-28 05:07:31 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "brendangregg";
|
|
|
|
repo = "FlameGraph";
|
2017-05-11 07:28:44 +02:00
|
|
|
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";
|
2016-08-02 19:50:55 +02:00
|
|
|
platforms = platforms.unix;
|
2015-11-28 05:07:31 +01:00
|
|
|
};
|
|
|
|
}
|