Merge pull request #103652 from dylex/pdsh
pdsh: enable optional slurm support
This commit is contained in:
commit
715cd2273e
@ -1,4 +1,4 @@
|
|||||||
{ stdenv, fetchurl, perl, readline, rsh, ssh }:
|
{ stdenv, fetchurl, perl, readline, rsh, ssh, slurm, slurmSupport ? false }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "pdsh-2.34";
|
name = "pdsh-2.34";
|
||||||
@ -8,7 +8,8 @@ stdenv.mkDerivation rec {
|
|||||||
sha256 = "1s91hmhrz7rfb6h3l5k97s393rcm1ww3svp8dx5z8vkkc933wyxl";
|
sha256 = "1s91hmhrz7rfb6h3l5k97s393rcm1ww3svp8dx5z8vkkc933wyxl";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [ perl readline ssh ];
|
buildInputs = [ perl readline ssh ]
|
||||||
|
++ (stdenv.lib.optional slurmSupport slurm);
|
||||||
|
|
||||||
preConfigure = ''
|
preConfigure = ''
|
||||||
configureFlagsArray=(
|
configureFlagsArray=(
|
||||||
@ -18,6 +19,7 @@ stdenv.mkDerivation rec {
|
|||||||
${if readline == null then "--without-readline" else "--with-readline"}
|
${if readline == null then "--without-readline" else "--with-readline"}
|
||||||
${if ssh == null then "--without-ssh" else "--with-ssh"}
|
${if ssh == null then "--without-ssh" else "--with-ssh"}
|
||||||
${if rsh == false then "--without-rsh" else "--with-rsh"}
|
${if rsh == false then "--without-rsh" else "--with-rsh"}
|
||||||
|
${if slurmSupport then "--with-slurm" else "--without-slurm"}
|
||||||
"--with-dshgroups"
|
"--with-dshgroups"
|
||||||
"--with-xcpu"
|
"--with-xcpu"
|
||||||
"--disable-debug"
|
"--disable-debug"
|
||||||
|
Loading…
Reference in New Issue
Block a user