diff options
author | Andres Löh <mail@andres-loeh.de> | 2010-07-08 11:43:06 +0000 |
---|---|---|
committer | Andres Löh <mail@andres-loeh.de> | 2010-07-08 11:43:06 +0000 |
commit | eb2cb9afd4062c6d1432e46015c53586f51b01dc (patch) | |
tree | c9dd0921d1446499afefe45330e2c8385f296c28 /pkgs | |
parent | b3378524fa44e2420aab72c81656105b6560bf96 (diff) | |
download | nixlib-eb2cb9afd4062c6d1432e46015c53586f51b01dc.tar nixlib-eb2cb9afd4062c6d1432e46015c53586f51b01dc.tar.gz nixlib-eb2cb9afd4062c6d1432e46015c53586f51b01dc.tar.bz2 nixlib-eb2cb9afd4062c6d1432e46015c53586f51b01dc.tar.lz nixlib-eb2cb9afd4062c6d1432e46015c53586f51b01dc.tar.xz nixlib-eb2cb9afd4062c6d1432e46015c53586f51b01dc.tar.zst nixlib-eb2cb9afd4062c6d1432e46015c53586f51b01dc.zip |
Added ghc-6.12.3. Does not build yet for me -- still have to figure out why.
svn path=/nixpkgs/trunk/; revision=22525
Diffstat (limited to 'pkgs')
-rw-r--r-- | pkgs/development/compilers/ghc/6.12.3.nix | 84 | ||||
-rw-r--r-- | pkgs/top-level/all-packages.nix | 5 |
2 files changed, 88 insertions, 1 deletions
diff --git a/pkgs/development/compilers/ghc/6.12.3.nix b/pkgs/development/compilers/ghc/6.12.3.nix new file mode 100644 index 000000000000..c6e05e8a785d --- /dev/null +++ b/pkgs/development/compilers/ghc/6.12.3.nix @@ -0,0 +1,84 @@ +{stdenv, fetchurl, ghc, perl, gmp, ncurses}: + +stdenv.mkDerivation rec { + version = "6.12.3"; + + name = "ghc-${version}"; + + # TODO: Does this have to be here, or can it go to meta? + homepage = "http://haskell.org/ghc"; + + src = fetchurl { + url = "http://darcs.haskell.org/download/dist/${version}/${name}-src.tar.bz2"; + sha256 = "0s2y1sv2nq1cgliv735q2w3gg4ykv1c0g1adbv8wgwhia10vxgbc"; + }; + + buildInputs = [ghc perl gmp ncurses]; + + buildMK = '' + libraries/integer-gmp_CONFIGURE_OPTS += --configure-option=--with-gmp-libraries="${gmp}/lib" + libraries/integer-gmp_CONFIGURE_OPTS += --configure-option=--with-gmp-includes="${gmp}/include" + ''; + + preConfigure = '' + echo "${buildMK}" > mk/build.mk + ''; + + configureFlags=[ + "--with-gcc=${stdenv.gcc}/bin/gcc" + ]; + + # required, because otherwise all symbols from HSffi.o are stripped, and + # that in turn causes GHCi to abort + stripDebugFlags=["-S" "--keep-file-symbols"]; + + meta = { + inherit homepage; + description = "The Glasgow Haskell Compiler"; + maintainers = [ + stdenv.lib.maintainers.marcweber + stdenv.lib.maintainers.andres + ]; + platforms = stdenv.lib.platforms.linux; + }; + + # TODO: requires a comment as to what it does and why it is needed. + passthru = { + corePackages = [ + [ "Cabal" "1.8.0.2" ] + [ "array" "0.3.0.0" ] + [ "base" "3.0.3.2" ] + [ "base" "4.2.0.0" ] + [ "bin-package-db" "0.0.0.0" ] + [ "bytestring" "0.9.1.5" ] + [ "containers" "0.3.0.0" ] + [ "directory" "1.0.1.0" ] + [ "dph-base" "0.4.0" ] + [ "dph-par" "0.4.0" ] + [ "dph-prim-interface" "0.4.0" ] + [ "dph-prim-par" "0.4.0" ] + [ "dph-prim-seq" "0.4.0" ] + [ "dph-seq" "0.4.0" ] + [ "extensible-exceptions" "0.1.1.1" ] + [ "ffi" "1.0" ] + [ "filepath" "1.1.0.3" ] + [ "ghc" "6.12.1" ] + [ "ghc-binary" "0.5.0.2" ] + [ "ghc-prim" "0.2.0.0" ] + [ "haskell98" "1.0.1.1" ] + [ "hpc" "0.5.0.4" ] + [ "integer-gmp" "0.2.0.0" ] + [ "old-locale" "1.0.0.2" ] + [ "old-time" "1.0.0.3" ] + [ "pretty" "1.0.1.1" ] + [ "process" "1.0.1.2" ] + [ "random" "1.0.0.2" ] + [ "rts" "1.0" ] + [ "syb" "0.1.0.2" ] + [ "template-haskell" "2.4.0.0" ] + [ "time" "1.1.4" ] + [ "unix" "2.4.0.0" ] + [ "utf8-string" "0.3.4" ] + ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 481aa6858689..015f0173b106 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -2456,13 +2456,16 @@ let haskellPackages_ghc6104 = haskellPackagesFun610 ../development/compilers/ghc/6.10.4.nix false; - # We will soon switch to either ghc-6.12.1 or ghc-6.12.2 as default. + # We will soon switch to ghc-6.12.* as default. haskellPackages_ghc6121 = lowPrio (haskellPackagesFun612 ../development/compilers/ghc/6.12.1.nix false); haskellPackages_ghc6122 = lowPrio (haskellPackagesFun612 ../development/compilers/ghc/6.12.2.nix false); + haskellPackages_ghc6123 = lowPrio + (haskellPackagesFun612 ../development/compilers/ghc/6.12.3.nix false); + # Currently not pointing to the actual HEAD, therefore disabled /* haskellPackages_ghcHEAD = lowPrio (import ./haskell-packages.nix { |