summary refs log tree commit diff
path: root/pkgs/development/compilers/ghc-6.8/ghc-6.8.3.nix
diff options
context:
space:
mode:
authorAndres Löh <mail@andres-loeh.de>2008-07-21 14:43:33 +0000
committerAndres Löh <mail@andres-loeh.de>2008-07-21 14:43:33 +0000
commitdd4a4a1dc455a15b08858ae33ca1da8c2f60a284 (patch)
treea776964de6e953fbae3fe1e135eb2ac804f281c0 /pkgs/development/compilers/ghc-6.8/ghc-6.8.3.nix
parent26e6eb0f7f6870e96335612fe01e06dd7233face (diff)
downloadnixpkgs-dd4a4a1dc455a15b08858ae33ca1da8c2f60a284.tar
nixpkgs-dd4a4a1dc455a15b08858ae33ca1da8c2f60a284.tar.gz
nixpkgs-dd4a4a1dc455a15b08858ae33ca1da8c2f60a284.tar.bz2
nixpkgs-dd4a4a1dc455a15b08858ae33ca1da8c2f60a284.tar.lz
nixpkgs-dd4a4a1dc455a15b08858ae33ca1da8c2f60a284.tar.xz
nixpkgs-dd4a4a1dc455a15b08858ae33ca1da8c2f60a284.tar.zst
nixpkgs-dd4a4a1dc455a15b08858ae33ca1da8c2f60a284.zip
* Added ghc-6.8.3 as the new default version of ghc.
* Added a ghc HEAD snapshot (ghc-6.9.x).

svn path=/nixpkgs/trunk/; revision=12391
Diffstat (limited to 'pkgs/development/compilers/ghc-6.8/ghc-6.8.3.nix')
-rw-r--r--pkgs/development/compilers/ghc-6.8/ghc-6.8.3.nix41
1 files changed, 41 insertions, 0 deletions
diff --git a/pkgs/development/compilers/ghc-6.8/ghc-6.8.3.nix b/pkgs/development/compilers/ghc-6.8/ghc-6.8.3.nix
new file mode 100644
index 00000000000..96655d5d7b3
--- /dev/null
+++ b/pkgs/development/compilers/ghc-6.8/ghc-6.8.3.nix
@@ -0,0 +1,41 @@
+{stdenv, fetchurl, readline, ghc, perl, m4, gmp, ncurses}:
+
+stdenv.mkDerivation (rec {
+  name = "ghc-6.8.3";
+  homepage = "http://www.haskell.org/ghc";
+
+  src = map fetchurl [
+    { url    = "${homepage}/dist/stable/dist/${name}-src.tar.bz2";
+      sha256 = "1fc1ff82a555532f1c9d2dc628fd9de5e6ebab2ce6ee9490a34174ceb6f76e6b";
+    }
+    { url    = "${homepage}/dist/stable/dist/${name}-src-extralibs.tar.bz2";
+      sha256 = "ee2f5ba6a46157fc53eae515cb6fa1ed3c5023e7eac15981d92af0af00ee2ba2";
+    }
+  ];
+
+  buildInputs = [ghc readline perl m4 gmp];
+
+  # The setup hook is executed by other packages building with ghc.
+  # It then looks for package configurations that are available and
+  # build a package database on the fly.
+  setupHook = ./setup-hook.sh;
+
+  meta = {
+    description = "The Glasgow Haskell Compiler";
+  };
+
+  configureFlags=[
+    "--with-gmp-libraries=${gmp}/lib"
+    "--with-gmp-includes=${gmp}/include"
+    "--with-readline-libraries=${readline}/lib"
+    "--with-gcc=${gcc}/bin/gcc"
+  ];
+
+  preConfigure = "
+    # still requires a hack for ncurses
+    sed -i \"s|^\\\(ld-options.*$\\\)|\\\1 -L${ncurses}/lib|\" libraries/readline/readline.buildinfo.in
+  ";
+
+  inherit (stdenv) gcc;
+  inherit readline gmp ncurses;
+})