nixpkgs/pkgs/development/tools/documentation/haddock/2.13.2.nix

27 lines
950 B
Nix
Raw Normal View History

{ 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;
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 ];
doCheck = false;
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;
hydraPlatforms = self.stdenv.lib.platforms.none;
maintainers = [ self.stdenv.lib.maintainers.andres ];
2012-10-15 11:52:01 +02:00
};
})