about summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authorSandro <sandro.jaeckel@gmail.com>2020-11-24 17:43:52 +0100
committerGitHub <noreply@github.com>2020-11-24 17:43:52 +0100
commit715cd2273e06317540c62be45859fc4d7e23aa18 (patch)
tree92caae848bdeca40dfc028307458a81823b1865b /pkgs
parent2545e3f370ce739aa50c9bcbe01517190d2e4d08 (diff)
parentb3eb8130fe1bc29211879b2658fb69b35416bb24 (diff)
Merge pull request #103652 from dylex/pdsh
pdsh: enable optional slurm support
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/tools/networking/pdsh/default.nix6
1 files changed, 4 insertions, 2 deletions
diff --git a/pkgs/tools/networking/pdsh/default.nix b/pkgs/tools/networking/pdsh/default.nix
index 9dd1a5581c554..3f00964bfd358 100644
--- a/pkgs/tools/networking/pdsh/default.nix
+++ b/pkgs/tools/networking/pdsh/default.nix
@@ -1,4 +1,4 @@
-{ stdenv, fetchurl, perl, readline, rsh, ssh }:
+{ stdenv, fetchurl, perl, readline, rsh, ssh, slurm, slurmSupport ? false }:
 
 stdenv.mkDerivation rec {
   name = "pdsh-2.34";
@@ -8,7 +8,8 @@ stdenv.mkDerivation rec {
     sha256 = "1s91hmhrz7rfb6h3l5k97s393rcm1ww3svp8dx5z8vkkc933wyxl";
   };
 
-  buildInputs = [ perl readline ssh ];
+  buildInputs = [ perl readline ssh ]
+    ++ (stdenv.lib.optional slurmSupport slurm);
 
   preConfigure = ''
     configureFlagsArray=(
@@ -18,6 +19,7 @@ stdenv.mkDerivation rec {
       ${if readline == null then "--without-readline" else "--with-readline"}
       ${if ssh == null then "--without-ssh" else "--with-ssh"}
       ${if rsh == false then "--without-rsh" else "--with-rsh"}
+      ${if slurmSupport then "--with-slurm" else "--without-slurm"}
       "--with-dshgroups"
       "--with-xcpu"
       "--disable-debug"