3
0
Fork 0
forked from mirrors/nixpkgs

haskell-generic-builder: allow selective enabling/disabling of the --hoogle flag to Haddock

This commit is contained in:
Peter Simons 2015-01-09 19:35:17 +01:00
parent 90a641310c
commit 2f2f767813

View file

@ -21,6 +21,7 @@
, propagatedUserEnvPkgs ? []
, testDepends ? []
, doCheck ? stdenv.lib.versionOlder "7.4" ghc.version, testTarget ? ""
, doHoogle ? true
, jailbreak ? false
, hyperlinkSource ? true
, enableLibraryProfiling ? false
@ -161,7 +162,7 @@ stdenv.mkDerivation {
runHook preBuild
./Setup build
${optionalString (!noHaddock && hasActiveLibrary) ''
./Setup haddock --html --hoogle ${optionalString (hasActiveLibrary && hyperlinkSource) "--hyperlink-source"}
./Setup haddock --html ${optionalString doHoogle "--hoogle"} ${optionalString (hasActiveLibrary && hyperlinkSource) "--hyperlink-source"}
''}
runHook postBuild
'';