summary refs log tree commit diff
path: root/pkgs/tools/networking/pdsh
diff options
context:
space:
mode:
authorPeter Simons <simons@cryp.to>2010-11-05 14:35:30 +0000
committerPeter Simons <simons@cryp.to>2010-11-05 14:35:30 +0000
commitd5abf27257a61b1345792831309b28039b2ad533 (patch)
tree13069e248d3f902300befedbbcedaeb11ffdbd8e /pkgs/tools/networking/pdsh
parenta33ddc804701a3ed78df40b9d594ec29bd8fe768 (diff)
downloadnixpkgs-d5abf27257a61b1345792831309b28039b2ad533.tar
nixpkgs-d5abf27257a61b1345792831309b28039b2ad533.tar.gz
nixpkgs-d5abf27257a61b1345792831309b28039b2ad533.tar.bz2
nixpkgs-d5abf27257a61b1345792831309b28039b2ad533.tar.lz
nixpkgs-d5abf27257a61b1345792831309b28039b2ad533.tar.xz
nixpkgs-d5abf27257a61b1345792831309b28039b2ad533.tar.zst
nixpkgs-d5abf27257a61b1345792831309b28039b2ad533.zip
pkgs/tools/networking/pdsh: fixed location of "info" and "man" directories
svn path=/nixpkgs/trunk/; revision=24604
Diffstat (limited to 'pkgs/tools/networking/pdsh')
-rw-r--r--pkgs/tools/networking/pdsh/default.nix43
1 files changed, 22 insertions, 21 deletions
diff --git a/pkgs/tools/networking/pdsh/default.nix b/pkgs/tools/networking/pdsh/default.nix
index c48ec9265c9..9ab03a5ebc5 100644
--- a/pkgs/tools/networking/pdsh/default.nix
+++ b/pkgs/tools/networking/pdsh/default.nix
@@ -14,27 +14,28 @@ stdenv.mkDerivation rec {
      library can be found. Obviously, though, this is a hack. */
   NIX_LDFLAGS="-lgcc_s";
 
-  # Setting --with-machines=$out in configureFlags doesn't seem to work,
-  # so I specify configurePhase instead.
-  configurePhase = "./configure --prefix=$out --with-machines=$out/etc/machines"
-                 + " " + (if readline == null then "--without-readline" else "--with-readline")
-                 + " " + (if ssh == null then "--without-ssh" else "--with-ssh")
-                 + " " + (if pam == null then "--without-pam" else "--with-pam")
-                 + " " + (if rsh == false then "--without-rsh" else "--with-rsh")
-                 + " --with-dshgroups"
-                 + " --with-xcpu"
-                 + " --without-genders"
-                 + " --without-mqshell"
-                 + " --without-mrsh"
-                 + " --without-netgroup"
-                 + " --without-nodeattr"
-                 + " --without-nodeupdown"
-                 + " --without-qshell"
-                 + " --without-slurm"
-                 + " --enable-fast-install"
-                 + " --disable-dependency-tracking"
-                 + " --disable-debug"
-                 ;
+  preConfigure = ''
+    configureFlagsArray=(
+      "--infodir=$out/share/info"
+      "--mandir=$out/share/man"
+      "--with-machines=$out/etc/machines"
+      ${if readline == null then "--without-readline" else "--with-readline"}
+      ${if ssh == null then "--without-ssh" else "--with-ssh"}
+      ${if pam == null then "--without-pam" else "--with-pam"}
+      ${if rsh == false then "--without-rsh" else "--with-rsh"}
+      "--with-dshgroups"
+      "--with-xcpu"
+      "--without-genders"
+      "--without-mqshell"
+      "--without-mrsh"
+      "--without-netgroup"
+      "--without-nodeattr"
+      "--without-nodeupdown"
+      "--without-qshell"
+      "--without-slurm"
+      "--disable-debug"
+    )
+  '';
 
   meta = {
     homepage = "https://computing.llnl.gov/linux/pdsh.html";