diff options
author | Justin Bedo <cu@cua0.org> | 2019-06-11 18:10:13 +1000 |
---|---|---|
committer | Justin Bedo <cu@cua0.org> | 2019-06-11 18:23:29 +1000 |
commit | dc448fa97dfc683ccd491fc4a00e58b6d0f150ef (patch) | |
tree | 88630eeb75e60978c293e7868fdb24a266cafbf9 /lib | |
parent | e82405f0e8e4680aa6a39556810535e5c1d88487 (diff) |
qsub: parameterise the path to PBS utils
Diffstat (limited to 'lib')
-rw-r--r-- | lib/qsub.nix | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/qsub.nix b/lib/qsub.nix index 6370a98..f5a00ec 100644 --- a/lib/qsub.nix +++ b/lib/qsub.nix @@ -2,7 +2,7 @@ with lib; -{ ppn, mem, walltime, queue ? null, qsubFlags ? null, tmpDir, sleepTime}: +{ ppn, mem, walltime, queue ? null, qsubFlags ? null, tmpDir, sleepTime, qsubPath ? "/usr/bin" }: drv: let ppnReified = if drv.multicore then ppn else 1; in lib.overrideDerivation drv ({ args, builder, name, ... }: { @@ -27,7 +27,7 @@ drv: qsub = writeScript "qsub" '' #!${stdenv.shell} - PATH=/usr/bin:/bin:/usr/sbin:/sbin + PATH=${qsubPath} SHELL=/bin/sh NIX_BUILD_CORES=${toString ppnReified} |