2014-06-19 00:14:45 +02:00
|
|
|
{ cabal, alex, Cabal, filepath, ghcPaths, happy, xhtml, makeWrapper }:
|
2012-03-05 12:58:21 +01:00
|
|
|
|
|
|
|
cabal.mkDerivation (self: {
|
|
|
|
pname = "haddock";
|
|
|
|
version = "2.10.0";
|
|
|
|
sha256 = "045lmmna5nwj07si81vxms5xkkmqvjsiif20nny5mvlabshxn1yi";
|
|
|
|
isLibrary = true;
|
|
|
|
isExecutable = true;
|
2014-06-19 00:14:45 +02:00
|
|
|
buildDepends = [ Cabal filepath ghcPaths xhtml makeWrapper ];
|
2013-02-24 22:09:07 +01:00
|
|
|
testDepends = [ Cabal filepath ];
|
2012-03-05 12:58:21 +01:00
|
|
|
buildTools = [ alex happy ];
|
2013-02-24 22:21:54 +01:00
|
|
|
doCheck = false;
|
2014-06-19 00:14:45 +02:00
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
wrapProgram $out/bin/haddock --add-flags "\$(${self.ghc.GHCGetPackages} ${self.ghc.version} \"\$(dirname \$0)\" \"--optghc=-package-conf --optghc=\")"
|
|
|
|
'';
|
|
|
|
|
2012-03-05 12:58:21 +01:00
|
|
|
meta = {
|
|
|
|
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;
|
2013-05-11 00:36:36 +02:00
|
|
|
maintainers = [ self.stdenv.lib.maintainers.andres ];
|
2012-03-05 12:58:21 +01:00
|
|
|
};
|
|
|
|
})
|