Archived
1
0
forked from rarias/bscpkgs

Add OSU test benchmarks

This commit is contained in:
2020-08-18 18:28:30 +02:00
parent ecc01e4314
commit 1e07be863a
7 changed files with 134 additions and 10 deletions

View File

@@ -7,6 +7,7 @@
app
, env ? ""
, argv # bash array as string, example: argv=''(-f "file with spaces" -t 10)''
, program ? "bin/run"
}:
stdenv.mkDerivation {
@@ -23,7 +24,7 @@ stdenv.mkDerivation {
${env}
argv=${argv}
exec ${app}/bin/run \''${argv[@]}
exec ${app}/${program} \''${argv[@]}
EOF
chmod +x $out/bin/run
'';