Add valgrind stage

This commit is contained in:
Rodrigo Arias 2020-09-28 13:00:59 +02:00
parent 985091130d
commit ff4d39233a
2 changed files with 24 additions and 0 deletions

View File

@ -0,0 +1,23 @@
{
stdenv
, bash
, valgrind
}:
{
program
}:
stdenv.mkDerivation {
name = "valgrind";
preferLocalBuild = true;
phases = [ "installPhase" ];
installPhase = ''
cat > $out <<EOF
#!/bin/sh
exec ${valgrind}/bin/valgrind ${program}
EOF
chmod +x $out
'';
}

View File

@ -182,6 +182,7 @@ let
perf = callPackage ./garlic/stages/perf.nix { };
broom = callPackage ./garlic/stages/broom.nix { };
envRecord = callPackage ./garlic/stages/envRecord.nix { };
valgrind = callPackage ./garlic/stages/valgrind.nix { };
};
# Tests (move to bsc ?)