mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-21 05:04:00 +00:00
27 lines
950 B
Nix
27 lines
950 B
Nix
{ cabal, alex, Cabal, deepseq, filepath, ghcPaths, happy, xhtml, makeWrapper }:
|
|
|
|
cabal.mkDerivation (self: {
|
|
pname = "haddock";
|
|
version = "2.13.2";
|
|
sha256 = "1qwj13ks3fzar14s587svv1pdiwk80m7x5pzn74v3jrqkn0xbrr5";
|
|
isLibrary = true;
|
|
isExecutable = true;
|
|
buildDepends = [ Cabal deepseq filepath ghcPaths xhtml makeWrapper ];
|
|
testDepends = [ Cabal deepseq filepath ];
|
|
buildTools = [ alex happy ];
|
|
doCheck = false;
|
|
|
|
postInstall = ''
|
|
wrapProgram $out/bin/haddock --add-flags "\$(${self.ghc.GHCGetPackages} ${self.ghc.version} \"\$(dirname \$0)\" \"--optghc=-package-conf --optghc=\")"
|
|
'';
|
|
|
|
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 ];
|
|
};
|
|
})
|