forked from rarias/bscpkgs
Add valgrind stage
This commit is contained in:
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
|
||||
'';
|
||||
}
|
||||
Reference in New Issue
Block a user