about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--pkgs/development/compilers/ghc/6.10.4.nix27
-rw-r--r--pkgs/top-level/all-packages.nix18
2 files changed, 40 insertions, 5 deletions
diff --git a/pkgs/development/compilers/ghc/6.10.4.nix b/pkgs/development/compilers/ghc/6.10.4.nix
new file mode 100644
index 000000000000..71643a88f0df
--- /dev/null
+++ b/pkgs/development/compilers/ghc/6.10.4.nix
@@ -0,0 +1,27 @@
+{stdenv, fetchurl, libedit, ghc, perl, gmp, ncurses}:
+
+stdenv.mkDerivation rec {
+  version = "6.10.4";
+  
+  name = "ghc-${version}";
+  
+  homepage = "http://haskell.org/ghc";
+
+  src = fetchurl {
+    url = "${homepage}/dist/${version}/${name}-src.tar.bz2";
+    sha256 = "d66a8e52572f4ff819fe5c4e34c6dd1e84a7763e25c3fadcc222453c0bd8534d";
+  };
+
+  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 03b98ef5a53c..13f0e8ca3d01 100644
--- a/pkgs/top-level/all-packages.nix
+++ b/pkgs/top-level/all-packages.nix
@@ -1755,7 +1755,7 @@ let
     inherit fetchurl stdenv perl ncurses gmp libedit;
   });
 
-  haskellPackages = haskellPackages_ghc6103;
+  haskellPackages = haskellPackages_ghc6104;
 
   haskellPackages_ghc642 = import ./haskell-packages.nix {
     inherit pkgs;
@@ -1796,21 +1796,21 @@ let
     };
   });
 
-  haskellPackages_ghc6101 = recurseIntoAttrs (import ./haskell-packages.nix {
+  haskellPackages_ghc6101 = 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 {
+  haskellPackages_ghc6102 = import ./haskell-packages.nix {
     inherit pkgs;
     ghc = import ../development/compilers/ghc/6.10.2.nix {
       inherit fetchurl stdenv perl ncurses gmp libedit;
       ghc = ghc6101Binary;
     };
-  });
+  };
 
   haskellPackages_ghc6103 = recurseIntoAttrs (import ./haskell-packages.nix {
     inherit pkgs;
@@ -1820,6 +1820,14 @@ let
     };
   });
 
+  haskellPackages_ghc6104 = recurseIntoAttrs (import ./haskell-packages.nix {
+    inherit pkgs;
+    ghc = import ../development/compilers/ghc/6.10.4.nix {
+      inherit fetchurl stdenv perl ncurses gmp libedit;
+      ghc = ghc6101Binary;
+    };
+  });
+
   falcon = builderDefsPackage (import ../development/interpreters/falcon) {
     inherit cmake;
   };