From 61a000b0560e4bf591a082b2e5464e2e370403ef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andres=20L=C3=B6h?= Date: Sun, 10 May 2009 21:04:58 +0000 Subject: [PATCH] Added ghc-6.10.3. svn path=/nixpkgs/trunk/; revision=15541 --- pkgs/development/compilers/ghc/6.10.3.nix | 27 +++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 8 +++++++ 2 files changed, 35 insertions(+) create mode 100644 pkgs/development/compilers/ghc/6.10.3.nix diff --git a/pkgs/development/compilers/ghc/6.10.3.nix b/pkgs/development/compilers/ghc/6.10.3.nix new file mode 100644 index 00000000000..f05306f1bf9 --- /dev/null +++ b/pkgs/development/compilers/ghc/6.10.3.nix @@ -0,0 +1,27 @@ +{stdenv, fetchurl, libedit, ghc, perl, gmp, ncurses}: + +stdenv.mkDerivation rec { + version = "6.10.3"; + + name = "ghc-${version}"; + + homepage = "http://haskell.org/ghc"; + + src = fetchurl { + url = "${homepage}/dist/${version}/${name}-src.tar.bz2"; + sha256 = "82d104ab8b24f27c3566b5693316c779427794a137237b3df925c55e20905893"; + }; + + 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/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 2854e8cb531..9e4a337e29e 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -1868,6 +1868,14 @@ let }; }); + haskellPackages_ghc6103 = recurseIntoAttrs (import ./haskell-packages.nix { + inherit pkgs; + ghc = import ../development/compilers/ghc/6.10.3.nix { + inherit fetchurl stdenv perl ncurses gmp libedit; + ghc = ghc6101Binary; + }; + }); + gprolog = import ../development/compilers/gprolog { inherit fetchurl stdenv; };