Archived
1
0
forked from rarias/bscpkgs

New stage design

This commit is contained in:
2020-09-02 17:07:09 +02:00
parent d469ccd59d
commit 8110bc2976
12 changed files with 221 additions and 150 deletions

View File

@@ -2,23 +2,23 @@
stdenv
}:
program:
{
program
}:
stdenv.mkDerivation {
inherit program;
name = "${program.name}-control";
name = "control";
preferLocalBuild = true;
phases = [ "installPhase" ];
dontPatchShebangs = true;
installPhase = ''
mkdir -p $out/bin
cat > $out/bin/run <<EOF
cat > $out <<EOF
#!/bin/sh
#set -e
for n in {1..30}; do
$program/bin/run
${program}
done
EOF
chmod +x $out/bin/run
chmod +x $out
'';
}