Merge bscpkgs into jungle #189

Manually merged
rarias merged 1013 commits from merge-bscpkgs into master 2025-10-07 16:12:34 +02:00
2 changed files with 31 additions and 0 deletions
Showing only changes of commit c3659d316d - Show all commits

30
garlic/stages/perf.nix Normal file
View File

@@ -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 <<EOF
#!/bin/sh
exec ${perf}/bin/perf ${perfOptions} ${program}
EOF
chmod +x $out
'';
}

View File

@@ -244,6 +244,7 @@ let
exec = callPackage ./garlic/stages/exec.nix { };
extrae = callPackage ./garlic/stages/extrae.nix { };
valgrind = callPackage ./garlic/stages/valgrind.nix { };
perf = callPackage ./garlic/stages/perf.nix { };
isolate = callPackage ./garlic/stages/isolate { };
runexp = callPackage ./garlic/stages/runexp { };
trebuchet = callPackage ./garlic/stages/trebuchet.nix { };