diff options
author | Andres Löh <mail@andres-loeh.de> | 2012-04-20 12:22:23 +0000 |
---|---|---|
committer | Andres Löh <mail@andres-loeh.de> | 2012-04-20 12:22:23 +0000 |
commit | 8915da0a6bf2edd453ea7f0cd10d2b932428ae88 (patch) | |
tree | baa219d2cc21b334b9a0cf663a015589a475edc9 /pkgs/development/compilers/ghc/7.4.2.nix | |
parent | 4fc0e49bdd235d74ed71afe3331aa6a75246a37b (diff) | |
download | nixlib-8915da0a6bf2edd453ea7f0cd10d2b932428ae88.tar nixlib-8915da0a6bf2edd453ea7f0cd10d2b932428ae88.tar.gz nixlib-8915da0a6bf2edd453ea7f0cd10d2b932428ae88.tar.bz2 nixlib-8915da0a6bf2edd453ea7f0cd10d2b932428ae88.tar.lz nixlib-8915da0a6bf2edd453ea7f0cd10d2b932428ae88.tar.xz nixlib-8915da0a6bf2edd453ea7f0cd10d2b932428ae88.tar.zst nixlib-8915da0a6bf2edd453ea7f0cd10d2b932428ae88.zip |
New GHC snapshots.
svn path=/nixpkgs/trunk/; revision=33858
Diffstat (limited to 'pkgs/development/compilers/ghc/7.4.2.nix')
-rw-r--r-- | pkgs/development/compilers/ghc/7.4.2.nix | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/pkgs/development/compilers/ghc/7.4.2.nix b/pkgs/development/compilers/ghc/7.4.2.nix new file mode 100644 index 000000000000..567e6c75def5 --- /dev/null +++ b/pkgs/development/compilers/ghc/7.4.2.nix @@ -0,0 +1,45 @@ +{stdenv, fetchurl, ghc, perl, gmp, ncurses, darwinInstallNameToolUtility}: + +stdenv.mkDerivation rec { + version = "7.4.1.20120412"; + + name = "ghc-${version}"; + + src = fetchurl { + url = "http://haskell.org/ghc/dist/stable/dist/${name}-src.tar.bz2"; + sha256 = "0hpzd51s5nvlsjk3wza45ji5v6m0szqjzch45fvv7wfzllrm595l"; + }; + + buildInputs = [ghc perl gmp ncurses] ++ + (if stdenv.isDarwin then [darwinInstallNameToolUtility] else []); + + 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 + sed -i -e 's|-isysroot /Developer/SDKs/MacOSX10.5.sdk||' configure + ''; + + 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 = { + homepage = "http://haskell.org/ghc"; + description = "The Glasgow Haskell Compiler"; + maintainers = [ + stdenv.lib.maintainers.marcweber + stdenv.lib.maintainers.andres + stdenv.lib.maintainers.simons + ]; + platforms = ghc.meta.platforms; + }; + +} |