Add loops param to control stage

This commit is contained in:
Rodrigo Arias 2020-09-03 16:18:50 +02:00
parent bdc221ba81
commit be95827927

View File

@ -4,6 +4,7 @@
{ {
program program
, loops ? 30
}: }:
stdenv.mkDerivation { stdenv.mkDerivation {
@ -15,7 +16,7 @@ stdenv.mkDerivation {
cat > $out <<EOF cat > $out <<EOF
#!/bin/sh #!/bin/sh
#set -e #set -e
for n in {1..30}; do for n in {1..${toString loops}}; do
${program} ${program}
done done
EOF EOF