mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-01 15:11:25 +00:00
Added ghc-6.12.2.
svn path=/nixpkgs/trunk/; revision=21303
This commit is contained in:
parent
a89f709a91
commit
b48dfda990
84
pkgs/development/compilers/ghc/6.12.2.nix
Normal file
84
pkgs/development/compilers/ghc/6.12.2.nix
Normal file
@ -0,0 +1,84 @@
|
||||
{stdenv, fetchurl, ghc, perl, gmp, ncurses}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
version = "6.12.2";
|
||||
|
||||
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://haskell.org/ghc/dist/${version}/${name}-src.tar.bz2";
|
||||
sha256 = "7f1e39f0b3ddaca35b55cd430ca058d1c4678445a7177391c9cb6342b7c41a30";
|
||||
};
|
||||
|
||||
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" ]
|
||||
];
|
||||
};
|
||||
}
|
@ -2257,13 +2257,13 @@ let
|
||||
};
|
||||
};
|
||||
|
||||
haskellPackages_ghc6103 = recurseIntoAttrs (import ./haskell-packages.nix {
|
||||
haskellPackages_ghc6103 = import ./haskell-packages.nix {
|
||||
inherit pkgs;
|
||||
ghc = import ../development/compilers/ghc/6.10.3.nix {
|
||||
inherit fetchurl stdenv perl ncurses gmp libedit;
|
||||
ghc = ghc6101Binary;
|
||||
};
|
||||
});
|
||||
};
|
||||
|
||||
haskellPackages_ghc6104 = recurseIntoAttrs (import ./haskell-packages.nix {
|
||||
inherit pkgs;
|
||||
@ -2282,14 +2282,25 @@ let
|
||||
};
|
||||
});
|
||||
|
||||
haskellPackages_ghcHEAD = import ./haskell-packages.nix {
|
||||
haskellPackages_ghc6122 = lowPrio (import ./haskell-packages.nix {
|
||||
inherit pkgs;
|
||||
ghc = import ../development/compilers/ghc/6.12.2.nix {
|
||||
inherit fetchurl stdenv perl ncurses gmp;
|
||||
ghc = ghc6101Binary;
|
||||
};
|
||||
});
|
||||
|
||||
# currently not pointing to the actual HEAD, so disabled
|
||||
/*
|
||||
haskellPackages_ghcHEAD = lowPrio (import ./haskell-packages.nix {
|
||||
inherit pkgs;
|
||||
ghc = import ../development/compilers/ghc/6.11.nix {
|
||||
inherit fetchurl stdenv perl ncurses gmp libedit;
|
||||
inherit (haskellPackages) happy alex; # hope these aren't required for the final version
|
||||
ghc = ghc6101Binary;
|
||||
};
|
||||
};
|
||||
});
|
||||
*/
|
||||
|
||||
haxeDist = import ../development/compilers/haxe {
|
||||
inherit fetchurl sourceFromHead stdenv lib ocaml zlib makeWrapper neko;
|
||||
|
@ -418,11 +418,18 @@ with (import ./release-lib.nix);
|
||||
leksah = linux;
|
||||
lhs2tex = ghcSupported;
|
||||
haskellPlatform = linux; /* OpenGL/mesa seems to fail on darwin */
|
||||
haskellPlatform2010100 = linux;
|
||||
xmonad = linux;
|
||||
};
|
||||
|
||||
haskellPackages_ghc6121 = {
|
||||
ghc = ghcSupported;
|
||||
haskellPlatform2010100 = linux;
|
||||
};
|
||||
|
||||
haskellPackages_ghc6122 = {
|
||||
ghc = ghcSupported;
|
||||
haskellPlatform2010100 = linux;
|
||||
};
|
||||
|
||||
kde3 = {
|
||||
|
Loading…
Reference in New Issue
Block a user