2014-06-19 00:14:45 +02:00
|
|
|
{ cabal, alex, Cabal, deepseq, filepath, ghcPaths, happy, xhtml, makeWrapper }:
|
2012-10-15 11:52:01 +02:00
|
|
|
|
|
|
|
cabal.mkDerivation (self: {
|
|
|
|
pname = "haddock";
|
2013-05-03 09:59:40 +02:00
|
|
|
version = "2.13.2";
|
|
|
|
sha256 = "1qwj13ks3fzar14s587svv1pdiwk80m7x5pzn74v3jrqkn0xbrr5";
|
2012-10-15 11:52:01 +02:00
|
|
|
isLibrary = true;
|
|
|
|
isExecutable = true;
|
2014-06-19 00:14:45 +02:00
|
|
|
buildDepends = [ Cabal deepseq filepath ghcPaths xhtml makeWrapper ];
|
2013-05-03 09:59:40 +02:00
|
|
|
testDepends = [ Cabal deepseq filepath ];
|
2012-10-15 11:52:01 +02: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-10-15 11:52:01 +02: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-10-15 11:52:01 +02:00
|
|
|
};
|
|
|
|
})
|