From 45e1edfda8a1aedae43492c616c0f5f053e235c9 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Fri, 23 Jun 2006 20:08:48 +0000 Subject: [PATCH] * Give the GHC builder a temporary $HOME. svn path=/nixpkgs/trunk/; revision=5504 --- pkgs/development/compilers/ghc/boot.nix | 6 +++--- pkgs/development/compilers/ghc/builder.sh | 4 ++++ 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/pkgs/development/compilers/ghc/boot.nix b/pkgs/development/compilers/ghc/boot.nix index 7ab762fbc50..0ec63442ccf 100644 --- a/pkgs/development/compilers/ghc/boot.nix +++ b/pkgs/development/compilers/ghc/boot.nix @@ -3,11 +3,11 @@ assert stdenv.system == "i686-linux"; stdenv.mkDerivation { - name = "ghc-6.4.1"; + name = "ghc-6.4.2"; builder = ./boot.sh; src = fetchurl { - url = http://nix.cs.uu.nl/dist/tarballs/ghc-6.4.1-i386-unknown-linux.tar.bz2; - md5 = "9cd18a8e946da91b373b8ec855cd842e"; + url = http://www.haskell.org/ghc/dist/6.4.2/ghc-6.4.2-i386-unknown-linux.tar.bz2; + md5 = "092fe2e25dab22b926babe97cc77db1f"; }; buildInputs = [perl]; propagatedBuildInputs = [readline ncurses]; diff --git a/pkgs/development/compilers/ghc/builder.sh b/pkgs/development/compilers/ghc/builder.sh index fed83027448..5d05417a7e8 100644 --- a/pkgs/development/compilers/ghc/builder.sh +++ b/pkgs/development/compilers/ghc/builder.sh @@ -2,4 +2,8 @@ source $stdenv/setup configureFlags="--with-gcc=$gcc/bin/gcc" +# Don't you hate build processes that write in $HOME? :-( +export HOME=$(pwd)/fake-home +mkdir -p $HOME + genericBuild