diff options
author | Andres Löh <mail@andres-loeh.de> | 2008-06-04 09:42:25 +0000 |
---|---|---|
committer | Andres Löh <mail@andres-loeh.de> | 2008-06-04 09:42:25 +0000 |
commit | ec984a12086d847aac2b217efe92ae5038ea3029 (patch) | |
tree | f03776a2334c61b55cfcf6bd0b0570250a843808 /pkgs/development/compilers/ghc-6.8/snapshot.nix | |
parent | dbddb786ccc40e7cd1d6f7fc77218ae2b56f57da (diff) | |
download | nixpkgs-ec984a12086d847aac2b217efe92ae5038ea3029.tar nixpkgs-ec984a12086d847aac2b217efe92ae5038ea3029.tar.gz nixpkgs-ec984a12086d847aac2b217efe92ae5038ea3029.tar.bz2 nixpkgs-ec984a12086d847aac2b217efe92ae5038ea3029.tar.lz nixpkgs-ec984a12086d847aac2b217efe92ae5038ea3029.tar.xz nixpkgs-ec984a12086d847aac2b217efe92ae5038ea3029.tar.zst nixpkgs-ec984a12086d847aac2b217efe92ae5038ea3029.zip |
Added a ghc-6.8.3 snapshot (with version number 6.8.2.20080602).
svn path=/nixpkgs/trunk/; revision=11969
Diffstat (limited to 'pkgs/development/compilers/ghc-6.8/snapshot.nix')
-rw-r--r-- | pkgs/development/compilers/ghc-6.8/snapshot.nix | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/pkgs/development/compilers/ghc-6.8/snapshot.nix b/pkgs/development/compilers/ghc-6.8/snapshot.nix new file mode 100644 index 00000000000..8258e45e6bb --- /dev/null +++ b/pkgs/development/compilers/ghc-6.8/snapshot.nix @@ -0,0 +1,41 @@ +{stdenv, fetchurl, readline, ghc, perl, m4, gmp, ncurses}: + +stdenv.mkDerivation (rec { + name = "ghc-6.8.2.20080602"; + homepage = "http://www.haskell.org/ghc"; + + src = map fetchurl [ + { url = "${homepage}/dist/stable/dist/${name}-src.tar.bz2"; + sha256 = "06374d2a65671a21b4ce44a84333cedf4a5f5e0adbb837e8985c6b46b5de4249"; + } + { url = "${homepage}/dist/stable/dist/${name}-src-extralibs.tar.bz2"; + sha256 = "0dfea592d6be5838fa7db85a65b7d38b97451b829afe3b03a790350a9591b470"; + } + ]; + + 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; +}) |