about summary refs log tree commit diff
path: root/pkgs/development/tools/flamegraph
diff options
context:
space:
mode:
authorChristine Koppelt <cko@users.noreply.github.com>2019-10-09 20:47:39 +0200
committerChristine Koppelt <cko@users.noreply.github.com>2019-10-17 09:33:11 +0200
commitdd8f3cd0d5d310a0b8e5ea59aa7c8a0e41bacd78 (patch)
tree10987aec168283c3bd429e18f8d3b300b0ed0996 /pkgs/development/tools/flamegraph
parent32113d5554033f784d1847a124fc46347564401b (diff)
flamegraph: 2017-07-01 -> 2019-02-16
Diffstat (limited to 'pkgs/development/tools/flamegraph')
-rw-r--r--pkgs/development/tools/flamegraph/default.nix19
1 files changed, 12 insertions, 7 deletions
diff --git a/pkgs/development/tools/flamegraph/default.nix b/pkgs/development/tools/flamegraph/default.nix
index a351c325ea241..23ada99eac0fa 100644
--- a/pkgs/development/tools/flamegraph/default.nix
+++ b/pkgs/development/tools/flamegraph/default.nix
@@ -1,27 +1,32 @@
 { stdenv, fetchFromGitHub, perl }:
 
-stdenv.mkDerivation {
-  name = "FlameGraph-2017-07-01";
+stdenv.mkDerivation rec {
+  pname = "FlameGraph";
+  version = "2019-02-16";
 
   src = fetchFromGitHub {
     owner = "brendangregg";
-    repo = "FlameGraph";
-    rev = "a93d905911c07c96a73b35ddbcb5ddb2f39da4b6";
-    sha256 = "07z2ffnab41dz833wwgr875vjccqyh0238357g7ml1yg5445x2jy";
+    repo = pname;
+    rev = "1b1c6deede9c33c5134c920bdb7a44cc5528e9a7";
+    sha256 = "1flvkmv2gbb003d51myl7r0wyhyw1bk9p7v19xagb8xjj4ci947b";
   };
 
   buildInputs = [ perl ];
 
   installPhase = ''
+    runHook preInstall
+
     mkdir -p $out/bin
     for x in $src/*.pl $src/*.awk $src/dev/*.pl $src/dev/*.d; do
       cp $x $out/bin
     done
+
+    runHook postInstall
   '';
 
   meta = with stdenv.lib; {
-    license = licenses.cddl;
-    homepage = http://www.brendangregg.com/flamegraphs.html;
+    license = with licenses; [ asl20 cddl gpl2Plus ];
+    homepage = "http://www.brendangregg.com/flamegraphs.html";
     description = "Visualization for profiled code";
     platforms = platforms.unix;
   };