forked from rarias/bscpkgs
Add control and nix-setup layers
This commit is contained in:
23
bsc/garlic/control.nix
Normal file
23
bsc/garlic/control.nix
Normal file
@@ -0,0 +1,23 @@
|
||||
{
|
||||
stdenv
|
||||
}:
|
||||
|
||||
program:
|
||||
|
||||
stdenv.mkDerivation {
|
||||
inherit program;
|
||||
name = "${program.name}-control";
|
||||
preferLocalBuild = true;
|
||||
phases = [ "installPhase" ];
|
||||
dontPatchShebangs = true;
|
||||
installPhase = ''
|
||||
mkdir -p $out/bin
|
||||
cat > $out/bin/run <<EOF
|
||||
#!/bin/sh
|
||||
for n in {1..30}; do
|
||||
$program/bin/run
|
||||
done
|
||||
EOF
|
||||
chmod +x $out/bin/run
|
||||
'';
|
||||
}
|
||||
Reference in New Issue
Block a user