aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJustin Bedo <cu@cua0.org>2021-02-08 17:40:52 +1100
committerJustin Bedo <cu@cua0.org>2021-02-08 17:40:52 +1100
commit4f7f2770baecc5f72ca9e90d7996c0a1554bda1b (patch)
tree4b0136a472ded1ce436df32347433a459344e3cb /lib
parent7de4d55d39fd39e1abb2b4bc8e0ba0d026bca54a (diff)
refactor slurm implementation to allow for overlays
Diffstat (limited to 'lib')
-rw-r--r--lib/slurm.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/slurm.nix b/lib/slurm.nix
index 4ad41ab..c050628 100644
--- a/lib/slurm.nix
+++ b/lib/slurm.nix
@@ -5,7 +5,7 @@ with lib;
let escape = x: if builtins.typeOf x == "string" then escapeShellArg x else x;
in { ppn, mem, walltime, partition ? null, slurmFlags ? null
-, salloc ? "/usr/bin/salloc", srun ? "/usr/bin/srun" }:
+, salloc ? "/usr/bin/salloc", srun ? "/usr/bin/srun", ... }:
drv:
let ppnReified = if drv.multicore then ppn else 1;
in overrideDerivation drv ({ args, builder, name, ... }: {