nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at fix-function-merge 41 lines 889 B view raw
1{ lib, stdenv, fetchFromGitHub, perl }: 2 3stdenv.mkDerivation rec { 4 pname = "FlameGraph"; 5 version = "2023-11-06"; 6 7 src = fetchFromGitHub { 8 owner = "brendangregg"; 9 repo = pname; 10 rev = "a96184c6939f8c6281fcd7285b54fba80555ac74"; 11 sha256 = "sha256-hvp1HxmgNbe85kxe0NyolFUd+kPPBDYAt+g2K8pE1Ak="; 12 }; 13 14 buildInputs = [ perl ]; 15 16 installPhase = '' 17 runHook preInstall 18 19 mkdir -p $out/bin 20 for x in $src/*.pl $src/*.awk $src/dev/*.pl $src/dev/*.d; do 21 cp $x $out/bin 22 done 23 24 runHook postInstall 25 ''; 26 27 doCheck = true; 28 29 checkPhase = '' 30 patchShebangs ./test.sh 31 ./test.sh 32 ''; 33 34 meta = with lib; { 35 license = with licenses; [ asl20 cddl gpl2Plus ]; 36 homepage = "http://www.brendangregg.com/flamegraphs.html"; 37 description = "Visualization for profiled code"; 38 mainProgram = "flamegraph.pl"; 39 platforms = platforms.unix; 40 }; 41}