2011-03-12 17:28:15 +00:00
|
|
|
{cabal, ghcPaths, xhtml, alex, happy, makeWrapper}:
|
2010-04-01 10:56:48 +00:00
|
|
|
|
|
|
|
cabal.mkDerivation (self : {
|
|
|
|
pname = "haddock";
|
2011-03-12 17:28:15 +00:00
|
|
|
version = "2.9.2"; # Haskell Platform 2011.2.0.0
|
2010-04-01 10:56:48 +00:00
|
|
|
name = self.fname;
|
2011-03-12 17:28:15 +00:00
|
|
|
sha256 = "189vvp173pqc69zgzqqx6vyhvsc13p1s86ql60rs1j5qlhh8ajg8";
|
2010-11-17 00:18:39 +00:00
|
|
|
extraBuildInputs = [alex happy makeWrapper];
|
2011-03-12 17:28:15 +00:00
|
|
|
propagatedBuildInputs = [ghcPaths xhtml];
|
2010-11-17 00:18:39 +00:00
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
wrapProgram $out/bin/haddock --add-flags "\$(${self.ghc.GHCGetPackages} ${self.ghc.ghcVersion} \"\$(dirname \$0)\" \"--optghc=-package-conf --optghc=\")"
|
|
|
|
'';
|
|
|
|
|
2010-04-01 10:56:48 +00:00
|
|
|
meta = {
|
|
|
|
description = "a tool for automatically generating documentation from annotated Haskell source code";
|
|
|
|
};
|
|
|
|
})
|