diff options
author | Russell O'Connor <roconnor@theorem.ca> | 2010-11-17 00:18:39 +0000 |
---|---|---|
committer | Russell O'Connor <roconnor@theorem.ca> | 2010-11-17 00:18:39 +0000 |
commit | 7f27566ef5727f81b29bfa458b9024e6cb3f7539 (patch) | |
tree | 9460e86612c577bc4b294f9cc862daf1e4a342ab /pkgs/development/tools/documentation | |
parent | 52ea4804e2cf20a5c29b4a0af24399615d93c7ff (diff) | |
download | nixlib-7f27566ef5727f81b29bfa458b9024e6cb3f7539.tar nixlib-7f27566ef5727f81b29bfa458b9024e6cb3f7539.tar.gz nixlib-7f27566ef5727f81b29bfa458b9024e6cb3f7539.tar.bz2 nixlib-7f27566ef5727f81b29bfa458b9024e6cb3f7539.tar.lz nixlib-7f27566ef5727f81b29bfa458b9024e6cb3f7539.tar.xz nixlib-7f27566ef5727f81b29bfa458b9024e6cb3f7539.tar.zst nixlib-7f27566ef5727f81b29bfa458b9024e6cb3f7539.zip |
Adding wrapper to get users packages
Haddock calls directly into ghclib by passing our carefully crafted ghc-wrapper. This means that haddock needs to be wrapped itself, which this patch does. svn path=/nixpkgs/trunk/; revision=24716
Diffstat (limited to 'pkgs/development/tools/documentation')
-rw-r--r-- | pkgs/development/tools/documentation/haddock/haddock-2.7.2.nix | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/pkgs/development/tools/documentation/haddock/haddock-2.7.2.nix b/pkgs/development/tools/documentation/haddock/haddock-2.7.2.nix index 70dcf61d78c7..b59ea3282796 100644 --- a/pkgs/development/tools/documentation/haddock/haddock-2.7.2.nix +++ b/pkgs/development/tools/documentation/haddock/haddock-2.7.2.nix @@ -1,12 +1,17 @@ -{cabal, ghcPaths, alex, happy}: +{cabal, ghcPaths, alex, happy, makeWrapper}: cabal.mkDerivation (self : { pname = "haddock"; version = "2.7.2"; # Haskell Platform 2010.1.0.0 and 2010.2.0.0 name = self.fname; sha256 = "4eaaaf62785f0ba3d37ba356cfac4679faef91c0902d8cdbf42837cbe5daab82"; - extraBuildInputs = [alex happy]; + extraBuildInputs = [alex happy makeWrapper]; propagatedBuildInputs = [ghcPaths]; + + postInstall = '' + wrapProgram $out/bin/haddock --add-flags "\$(${self.ghc.GHCGetPackages} ${self.ghc.ghcVersion} \"\$(dirname \$0)\" \"--optghc=-package-conf --optghc=\")" + ''; + meta = { description = "a tool for automatically generating documentation from annotated Haskell source code"; }; |