From d5abf27257a61b1345792831309b28039b2ad533 Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Fri, 5 Nov 2010 14:35:30 +0000 Subject: [PATCH] pkgs/tools/networking/pdsh: fixed location of "info" and "man" directories svn path=/nixpkgs/trunk/; revision=24604 --- pkgs/tools/networking/pdsh/default.nix | 43 +++++++++++++------------- 1 file changed, 22 insertions(+), 21 deletions(-) diff --git a/pkgs/tools/networking/pdsh/default.nix b/pkgs/tools/networking/pdsh/default.nix index c48ec9265c93..9ab03a5ebc50 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";