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];
|
2010-11-17 01:18:39 +01:00
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
wrapProgram $out/bin/haddock --add-flags "\$(${self.ghc.GHCGetPackages} ${self.ghc.ghcVersion} \"\$(dirname \$0)\" \"--optghc=-package-conf --optghc=\")"
|
|
|
|
'';
|
|
|
|
|
2010-04-01 12:56:48 +02:00
|
|
|
meta = {
|
|
|
|
description = "a tool for automatically generating documentation from annotated Haskell source code";
|
|
|
|
};
|
|
|
|
})
|