2010-11-17 01:18:39 +01:00
|
|
|
{cabal, ghcPaths, alex, happy, makeWrapper}:
|
2010-04-01 12:56:48 +02:00
|
|
|
|
|
|
|
cabal.mkDerivation (self : {
|
|
|
|
pname = "haddock";
|
2010-07-17 15:23:48 +02:00
|
|
|
version = "2.7.2"; # Haskell Platform 2010.1.0.0 and 2010.2.0.0
|
2010-04-01 12:56:48 +02:00
|
|
|
name = self.fname;
|
|
|
|
sha256 = "4eaaaf62785f0ba3d37ba356cfac4679faef91c0902d8cdbf42837cbe5daab82";
|
2010-11-17 01:18:39 +01:00
|
|
|
extraBuildInputs = [alex happy makeWrapper];
|
2010-04-01 12:56:48 +02:00
|
|
|
propagatedBuildInputs = [ghcPaths];
|
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;
|
2012-09-11 18:21:54 +02:00
|
|
|
maintainers = [ self.stdenv.lib.maintainers.andres ];
|
2010-04-01 12:56:48 +02:00
|
|
|
};
|
|
|
|
})
|