2015-11-28 04:07:31 +00:00
|
|
|
{ stdenv, fetchFromGitHub, perl }:
|
|
|
|
|
2019-10-09 18:47:39 +00: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 18:47:39 +00:00
|
|
|
repo = pname;
|
|
|
|
rev = "1b1c6deede9c33c5134c920bdb7a44cc5528e9a7";
|
|
|
|
sha256 = "1flvkmv2gbb003d51myl7r0wyhyw1bk9p7v19xagb8xjj4ci947b";
|
2015-11-28 04:07:31 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ perl ];
|
|
|
|
|
|
|
|
installPhase = ''
|
2019-10-09 18:47:39 +00: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 18:47:39 +00:00
|
|
|
|
|
|
|
runHook postInstall
|
2015-11-28 04:07:31 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2019-10-09 18:47:39 +00: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";
|
2016-08-02 17:50:55 +00:00
|
|
|
platforms = platforms.unix;
|
2015-11-28 04:07:31 +00:00
|
|
|
};
|
|
|
|
}
|