@@ -9,24 +9,21 @@ stdenv.mkDerivation rec {
99 sha256 = "0487x0rvpz6c47v9qvc7rgk3hnabmali6c66mzh2bizkgmy1qpk0";
1010 };
1111
12− buildInputs = [ ghc perl gmp ncurses happy alex ];
13−
14− enableParallelBuilding = true;
15−
16− buildMK = ''
17− libraries/integer-gmp_CONFIGURE_OPTS += --configure-option=--with-gmp-libraries="${gmp}/lib"
18− libraries/integer-gmp_CONFIGURE_OPTS += --configure-option=--with-gmp-includes="${gmp}/include"
19− DYNAMIC_BY_DEFAULT = NO
20− '';
12+ buildInputs = [ ghc perl ncurses happy alex ];
2113
2214 preConfigure = ''
23− echo "${buildMK}" > mk/build.mk
15+ echo >mk/build.mk "DYNAMIC_BY_DEFAULT = NO"
2416 sed -i -e 's|-isysroot /Developer/SDKs/MacOSX10.5.sdk||' configure
2517 '' + stdenv.lib.optionalString (!stdenv.isDarwin) ''
2618 export NIX_LDFLAGS="$NIX_LDFLAGS -rpath $out/lib/ghc-${version}"
2719 '';
2820
29− configureFlags = "--with-gcc=${stdenv.gcc}/bin/gcc";
21+ configureFlags = [
22+ "--with-gcc=${stdenv.gcc}/bin/gcc"
23+ "--with-gmp-includes=${gmp}/include" "--with-gmp-libraries=${gmp}/lib"
24+ ];
25+
26+ enableParallelBuilding = true;
3027
3128 # required, because otherwise all symbols from HSffi.o are stripped, and
3229 # that in turn causes GHCi to abort
@@ -35,11 +32,7 @@ stdenv.mkDerivation rec {
3532 meta = {
3633 homepage = "http://haskell.org/ghc";
3734 description = "The Glasgow Haskell Compiler";
38− maintainers = [
39− stdenv.lib.maintainers.marcweber
40− stdenv.lib.maintainers.andres
41− stdenv.lib.maintainers.simons
42− ];
35+ maintainers = with stdenv.lib.maintainers; [ marcweber andres simons ];
4336 inherit (ghc.meta) license platforms;
4437 };
4538