From c0f72f27cc490aca80dc567965a8e0e2c4e0afa3 Mon Sep 17 00:00:00 2001 From: Andrew Marshall Date: Mon, 27 May 2024 18:06:28 -0400 Subject: [PATCH] flamegraph: run tests during checkPhase --- pkgs/development/tools/flamegraph/default.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pkgs/development/tools/flamegraph/default.nix b/pkgs/development/tools/flamegraph/default.nix index 90e3541c3f28..bbb4c9a82ff0 100644 --- a/pkgs/development/tools/flamegraph/default.nix +++ b/pkgs/development/tools/flamegraph/default.nix @@ -24,6 +24,13 @@ stdenv.mkDerivation rec { runHook postInstall ''; + doCheck = true; + + checkPhase = '' + patchShebangs ./test.sh + ./test.sh + ''; + meta = with lib; { license = with licenses; [ asl20 cddl gpl2Plus ]; homepage = "http://www.brendangregg.com/flamegraphs.html";