Add valgrind stage
This commit is contained in:
parent
985091130d
commit
ff4d39233a
23
garlic/stages/valgrind.nix
Normal file
23
garlic/stages/valgrind.nix
Normal 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
|
||||||
|
'';
|
||||||
|
}
|
@ -182,6 +182,7 @@ let
|
|||||||
perf = callPackage ./garlic/stages/perf.nix { };
|
perf = callPackage ./garlic/stages/perf.nix { };
|
||||||
broom = callPackage ./garlic/stages/broom.nix { };
|
broom = callPackage ./garlic/stages/broom.nix { };
|
||||||
envRecord = callPackage ./garlic/stages/envRecord.nix { };
|
envRecord = callPackage ./garlic/stages/envRecord.nix { };
|
||||||
|
valgrind = callPackage ./garlic/stages/valgrind.nix { };
|
||||||
};
|
};
|
||||||
|
|
||||||
# Tests (move to bsc ?)
|
# Tests (move to bsc ?)
|
||||||
|
Loading…
Reference in New Issue
Block a user