From 4f7f2770baecc5f72ca9e90d7996c0a1554bda1b Mon Sep 17 00:00:00 2001 From: Justin Bedo Date: Mon, 8 Feb 2021 17:40:52 +1100 Subject: refactor slurm implementation to allow for overlays --- lib/slurm.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/slurm.nix') 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, ... }: { -- cgit v1.2.3