2011-03-12 18:28:15 +01:00
|
|
|
{cabal, ghcPaths, xhtml, alex, happy, makeWrapper}:
|
2010-04-01 12:56:48 +02:00
|
|
|
|
|
|
|
cabal.mkDerivation (self : {
|
|
|
|
pname = "haddock";
|
2011-03-12 18:28:15 +01:00
|
|
|
version = "2.9.2"; # Haskell Platform 2011.2.0.0
|
2010-04-01 12:56:48 +02:00
|
|
|
name = self.fname;
|
2011-03-12 18:28:15 +01:00
|
|
|
sha256 = "189vvp173pqc69zgzqqx6vyhvsc13p1s86ql60rs1j5qlhh8ajg8";
|
2014-07-31 19:48:24 +02:00
|
|
|
buildTools = [alex happy makeWrapper];
|
2011-03-12 18:28:15 +01:00
|
|
|
propagatedBuildInputs = [ghcPaths xhtml];
|
2013-02-24 22:21:54 +01:00
|
|
|
doCheck = false;
|
2010-11-17 01:18:39 +01:00
|
|
|
|
|
|
|
postInstall = ''
|
2013-10-26 18:33:09 +02:00
|
|
|
wrapProgram $out/bin/haddock --add-flags "\$(${self.ghc.GHCGetPackages} ${self.ghc.version} \"\$(dirname \$0)\" \"--optghc=-package-conf --optghc=\")"
|
2010-11-17 01:18:39 +01:00
|
|
|
'';
|
|
|
|
|
2010-04-01 12:56:48 +02:00
|
|
|
meta = {
|
2011-08-15 13:27:02 +02:00
|
|
|
homepage = "http://www.haskell.org/haddock/";
|
|
|
|
description = "A documentation-generation tool for Haskell libraries";
|
|
|
|
license = self.stdenv.lib.licenses.bsd3;
|
|
|
|
platforms = self.ghc.meta.platforms;
|
2014-08-09 00:34:06 +02:00
|
|
|
hydraPlatforms = self.stdenv.lib.platforms.none;
|
2011-08-15 13:27:02 +02:00
|
|
|
maintainers = [
|
|
|
|
self.stdenv.lib.maintainers.andres
|
|
|
|
];
|
2010-04-01 12:56:48 +02:00
|
|
|
};
|
|
|
|
})
|