From 356791ea62b7bd87b4af33ecbab664a41f5ac768 Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Fri, 10 Jul 2009 12:26:18 +0000 Subject: [PATCH] The ghc binary distribution contains a 'pwd' binary that's broken on systems running a Red Hat kernel and causes the build to fail. To remedy that problem, we replace that binary with Nix's 'pwd' program before running configure. Unfortunately, the same problem occurs again with 'installPackage', so as of now, GHC cannot be installed on Red Hat. svn path=/nixpkgs/trunk/; revision=16314 --- pkgs/development/compilers/ghc/6.10.1-binary.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/pkgs/development/compilers/ghc/6.10.1-binary.nix b/pkgs/development/compilers/ghc/6.10.1-binary.nix index 720580c49c56..2e1b5f2973d2 100644 --- a/pkgs/development/compilers/ghc/6.10.1-binary.nix +++ b/pkgs/development/compilers/ghc/6.10.1-binary.nix @@ -53,6 +53,7 @@ stdenv.mkDerivation rec { '' else ""); configurePhase = '' + cp $(type -P pwd) utils/pwd/pwd ./configure --prefix=$out --with-gmp-libraries=${gmp}/lib --with-gmp-includes=${gmp}/include '';