diff --git a/pkgs/development/compilers/ghc/6.10.1.nix b/pkgs/development/compilers/ghc/6.10.1.nix new file mode 100644 index 000000000000..deca9d19f1d2 --- /dev/null +++ b/pkgs/development/compilers/ghc/6.10.1.nix @@ -0,0 +1,27 @@ +{stdenv, fetchurl, libedit, ghc, perl, gmp, ncurses}: + +stdenv.mkDerivation rec { + version = "6.10.1"; + + name = "ghc-${version}"; + + homepage = "http://haskell.org/ghc"; + + src = fetchurl { + url = "${homepage}/dist/${version}/${name}-src.tar.bz2"; + sha256 = "16q08cxxsmh4hgjhvkl739pc1hh81gljycfq1d2z6m1ld3jpbi22"; + }; + + buildInputs = [ghc libedit perl gmp]; + + configureFlags=[ + "--with-gmp-libraries=${gmp}/lib" + "--with-gmp-includes=${gmp}/include" + "--with-gcc=${stdenv.gcc}/bin/gcc" + ]; + + meta = { + inherit homepage; + description = "The Glasgow Haskell Compiler"; + }; +} diff --git a/pkgs/development/compilers/ghc/6.10.2.nix b/pkgs/development/compilers/ghc/6.10.2.nix index 9420e9fea4ad..8568c5661450 100644 --- a/pkgs/development/compilers/ghc/6.10.2.nix +++ b/pkgs/development/compilers/ghc/6.10.2.nix @@ -17,7 +17,6 @@ stdenv.mkDerivation rec { configureFlags=[ "--with-gmp-libraries=${gmp}/lib" "--with-gmp-includes=${gmp}/include" - #"--with-readline-libraries=${readline}/lib" "--with-gcc=${stdenv.gcc}/bin/gcc" ]; diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index e955bbe0ee4d..97ac20c2b058 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -1873,6 +1873,14 @@ let }; }); + haskellPackages_ghc6101 = recurseIntoAttrs (import ./haskell-packages.nix { + inherit pkgs; + ghc = import ../development/compilers/ghc/6.10.1.nix { + inherit fetchurl stdenv perl ncurses gmp libedit; + ghc = ghc6101Binary; + }; + }); + haskellPackages_ghc6102 = recurseIntoAttrs (import ./haskell-packages.nix { inherit pkgs; ghc = import ../development/compilers/ghc/6.10.2.nix {