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-22 13:02:11 +0000
committerAndres Löh <mail@andres-loeh.de>2008-07-22 13:02:11 +0000
commita52d7b00f3c5bf8a9067d57278c1e9a285614632 (patch)
treef79308caa8fdc68608f114e799db085f6aeea01d /pkgs/development/compilers/ghc-6.8/ghc-6.8.3.nix
parentcf7b225cf43522994b1e7745a91f6ccd1a42a7e7 (diff)
downloadnixpkgs-a52d7b00f3c5bf8a9067d57278c1e9a285614632.tar
nixpkgs-a52d7b00f3c5bf8a9067d57278c1e9a285614632.tar.gz
nixpkgs-a52d7b00f3c5bf8a9067d57278c1e9a285614632.tar.bz2
nixpkgs-a52d7b00f3c5bf8a9067d57278c1e9a285614632.tar.lz
nixpkgs-a52d7b00f3c5bf8a9067d57278c1e9a285614632.tar.xz
nixpkgs-a52d7b00f3c5bf8a9067d57278c1e9a285614632.tar.zst
nixpkgs-a52d7b00f3c5bf8a9067d57278c1e9a285614632.zip
* missing file from last commit
svn path=/nixpkgs/trunk/; revision=12393
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.nix14
1 files changed, 9 insertions, 5 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
index 96655d5d7b3..60047acea1e 100644
--- a/pkgs/development/compilers/ghc-6.8/ghc-6.8.3.nix
+++ b/pkgs/development/compilers/ghc-6.8/ghc-6.8.3.nix
@@ -1,4 +1,4 @@
-{stdenv, fetchurl, readline, ghc, perl, m4, gmp, ncurses}:
+{stdenv, fetchurl, readline, ghc, perl, m4, gmp, ncurses, haddock}:
 
 stdenv.mkDerivation (rec {
   name = "ghc-6.8.3";
@@ -13,7 +13,7 @@ stdenv.mkDerivation (rec {
     }
   ];
 
-  buildInputs = [ghc readline perl m4 gmp];
+  buildInputs = [ghc readline perl m4 gmp haddock];
 
   # The setup hook is executed by other packages building with ghc.
   # It then looks for package configurations that are available and
@@ -31,10 +31,14 @@ stdenv.mkDerivation (rec {
     "--with-gcc=${gcc}/bin/gcc"
   ];
 
-  preConfigure = "
+  preConfigure = ''
     # still requires a hack for ncurses
-    sed -i \"s|^\\\(ld-options.*$\\\)|\\\1 -L${ncurses}/lib|\" libraries/readline/readline.buildinfo.in
-  ";
+    sed -i "s|^\(ld-options.*$\)|\1 -L${ncurses}/lib|" libraries/readline/readline.buildinfo.in
+    # build haddock docs
+    echo "HADDOCK_DOCS = YES" >> mk/build.mk
+  '';
+
+  installTargets = ["install" "install-docs"];
 
   inherit (stdenv) gcc;
   inherit readline gmp ncurses;