1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-22 13:41:26 +00:00
nixpkgs/pkgs/development/tools/documentation/haddock/2.14.2.nix
2014-06-19 06:36:11 -05:00

27 lines
890 B
Nix

{ cabal, Cabal, deepseq, filepath, ghcPaths, hspec, QuickCheck
, xhtml, makeWrapper
}:
cabal.mkDerivation (self: {
pname = "haddock";
version = "2.14.2";
sha256 = "0h96jj6y093h4gcqpiq0nyv7h5wjg8ji7z1im9ydivmsv0627prk";
isLibrary = true;
isExecutable = true;
buildDepends = [ Cabal deepseq filepath ghcPaths xhtml makeWrapper ];
testDepends = [ Cabal deepseq filepath hspec QuickCheck ];
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;
maintainers = [ self.stdenv.lib.maintainers.andres ];
};
})