aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJustin Bedo <cu@cua0.org>2019-05-16 21:18:27 +1000
committerJustin Bedo <cu@cua0.org>2019-05-16 21:46:02 +1000
commitd5fd734513671d957c20a66655c98d325bb1760f (patch)
treedf0ab9cf8b9806f939723cb2e0827aa047185948 /lib
parentfa35a2634108bd179de0c7dd21ca5355f6918a9b (diff)
slurm: renamed from sbatch
Diffstat (limited to 'lib')
-rw-r--r--lib/slurm.nix (renamed from lib/sbatch.nix)6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/sbatch.nix b/lib/slurm.nix
index d52c23e..daca4af 100644
--- a/lib/sbatch.nix
+++ b/lib/slurm.nix
@@ -8,12 +8,12 @@ drv:
in lib.overrideDerivation drv ({ args, builder, name, ... }: {
builder = stdenv.shell;
args = let
- script = writeScript "sbatch-script" ''
+ script = writeScript "slurm-script" ''
#!${stdenv.shell}
${builder} ${lib.escapeShellArgs args}
'';
- sbatch = writeScript "sbatch" ''
+ slurm = writeScript "slurm" ''
#!${stdenv.shell}
NIX_BUILD_CORES=${toString ppnReified}
@@ -24,5 +24,5 @@ drv:
${script}
'';
- in [ "-c" sbatch ];
+ in [ "-c" slurm ];
})