Adding ghc-7.0.3.
svn path=/nixpkgs/trunk/; revision=26588
This commit is contained in:
parent
b89d88cb22
commit
f9c356ad17
43
pkgs/development/compilers/ghc/7.0.3.nix
Normal file
43
pkgs/development/compilers/ghc/7.0.3.nix
Normal file
@ -0,0 +1,43 @@
|
|||||||
|
{stdenv, fetchurl, ghc, perl, gmp, ncurses, darwinInstallNameToolUtility}:
|
||||||
|
|
||||||
|
stdenv.mkDerivation rec {
|
||||||
|
version = "7.0.3";
|
||||||
|
name = "ghc-${version}";
|
||||||
|
|
||||||
|
src = fetchurl {
|
||||||
|
url = "http://haskell.org/ghc/dist/${version}/${name}-src.tar.bz2";
|
||||||
|
sha256 = "1nfc2c6bdcdfg3f3d9q5v109jrrwhz6by3qa4qi7k0xbip16jq8m";
|
||||||
|
};
|
||||||
|
|
||||||
|
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
|
||||||
|
];
|
||||||
|
platforms = stdenv.lib.platforms.linux ++ stdenv.lib.platforms.darwin;
|
||||||
|
};
|
||||||
|
|
||||||
|
}
|
@ -1947,6 +1947,11 @@ let
|
|||||||
haskellPackages_ghc702 =
|
haskellPackages_ghc702 =
|
||||||
haskellPackagesFun ../development/compilers/ghc/7.0.2.nix (x : x.ghc702Prefs) false (x : x);
|
haskellPackagesFun ../development/compilers/ghc/7.0.2.nix (x : x.ghc702Prefs) false (x : x);
|
||||||
|
|
||||||
|
# Can become default after a short testing phase. There's also a minor platform
|
||||||
|
# release planned based on 703. Please keep at lowPrio until then.
|
||||||
|
haskellPackages_ghc703 =
|
||||||
|
haskellPackagesFun ../development/compilers/ghc/7.0.3.nix (x : x.ghc703Prefs) false lowPrio;
|
||||||
|
|
||||||
haskellPackages_ghcHEAD =
|
haskellPackages_ghcHEAD =
|
||||||
haskellPackagesFun ../development/compilers/ghc/head.nix (x : x.ghcHEADPrefs) false lowPrio;
|
haskellPackagesFun ../development/compilers/ghc/head.nix (x : x.ghcHEADPrefs) false lowPrio;
|
||||||
|
|
||||||
|
@ -86,6 +86,7 @@ let result = let callPackage = x : y : modifyPrio (newScope result.final x y);
|
|||||||
ghc6123Prefs = super : super // super.haskellPlatformDefaults_2010_2_0_0 super;
|
ghc6123Prefs = super : super // super.haskellPlatformDefaults_2010_2_0_0 super;
|
||||||
ghc701Prefs = super : super // super.haskellPlatformDefaults_2011_2_0_0 super; # link
|
ghc701Prefs = super : super // super.haskellPlatformDefaults_2011_2_0_0 super; # link
|
||||||
ghc702Prefs = super : super // super.haskellPlatformDefaults_2011_2_0_0 super;
|
ghc702Prefs = super : super // super.haskellPlatformDefaults_2011_2_0_0 super;
|
||||||
|
ghc703Prefs = super : super // super.haskellPlatformDefaults_2011_2_0_0 super; # link
|
||||||
ghcHEADPrefs = super : super // super.haskellPlatformDefaults_2011_2_0_0 super; # link
|
ghcHEADPrefs = super : super // super.haskellPlatformDefaults_2011_2_0_0 super; # link
|
||||||
|
|
||||||
# GHC and its wrapper
|
# GHC and its wrapper
|
||||||
|
Loading…
x
Reference in New Issue
Block a user