Merge pull request #70876 from cko/flamegraph

flamegraph: 2017-07-01 -> 2019-02-16
This commit is contained in:
Renaud 2019-10-17 11:15:14 +02:00 committed by GitHub
commit 7c0c96536b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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