Add loops param to control stage

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

View File

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