From dc448fa97dfc683ccd491fc4a00e58b6d0f150ef Mon Sep 17 00:00:00 2001 From: Justin Bedo Date: Tue, 11 Jun 2019 18:10:13 +1000 Subject: qsub: parameterise the path to PBS utils --- lib/qsub.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib') 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} -- cgit v1.2.3