From c3659d316dff53a1b7556ebfb4fbfa347abb7759 Mon Sep 17 00:00:00 2001 From: Rodrigo Arias Mallo Date: Thu, 15 Oct 2020 18:50:34 +0200 Subject: [PATCH] Add perf stage --- garlic/stages/perf.nix | 30 ++++++++++++++++++++++++++++++ overlay.nix | 1 + 2 files changed, 31 insertions(+) create mode 100644 garlic/stages/perf.nix diff --git a/garlic/stages/perf.nix b/garlic/stages/perf.nix new file mode 100644 index 0000000..cbbe937 --- /dev/null +++ b/garlic/stages/perf.nix @@ -0,0 +1,30 @@ +{ + stdenv +, perf +, garlicTools +}: + +{ + nextStage +, perfOptions +}: + +with garlicTools; + +let + program = stageProgram nextStage; +in + stdenv.mkDerivation { + name = "perf"; + phases = [ "installPhase" ]; + preferLocalBuild = true; + dontPatchShebangs = true; + installPhase = '' + cat > $out <