aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJustin Bedo <cu@cua0.org>2019-02-06 11:41:23 +1100
committerJustin Bedo <cu@cua0.org>2019-02-06 11:43:23 +1100
commitde57ab52a839ffbd5eee90aca29d6042b4911ed2 (patch)
tree590c2a2fe3148aed22b509d4a0b326879943e30f /lib
parent8e466df452e33cc2102e18c3ee1bdcf7e0ea189f (diff)
qsub: rename flags to qsubFlags to avoid collision
Diffstat (limited to 'lib')
-rw-r--r--lib/qsub.nix4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/qsub.nix b/lib/qsub.nix
index 85036fb..235aa80 100644
--- a/lib/qsub.nix
+++ b/lib/qsub.nix
@@ -2,7 +2,7 @@
with lib;
-{ ppn, mem, walltime, queue ? null, flags ? null, tmpDir, sleepTime}: drv: lib.overrideDerivation drv ({ args, builder, name, ... }: {
+{ ppn, mem, walltime, queue ? null, qsubFlags ? null, tmpDir, sleepTime}: drv: lib.overrideDerivation drv ({ args, builder, name, ... }: {
builder = "/bin/bash";
args = let
script = writeScript "qsub-script" ''
@@ -32,7 +32,7 @@ with lib;
qsub -l nodes=1:ppn=${toString ppn},mem=${toString mem}gb,walltime=${walltime} \
-N "${name}" \
${optionalString (queue != null) "-q ${queue}"} \
- ${optionalString (flags != null) flags} \
+ ${optionalString (qsubFlags != null) qsubFlags} \
${script} 2>&1 > id
if [ $? -eq 0 ] ; then
break