mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-25 20:34:52 +03:00
haskell-generic-builder: allow selective enabling/disabling of the --hoogle flag to Haddock
This commit is contained in:
parent
90a641310c
commit
2f2f767813
@ -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
|
||||
'';
|
||||
|
Loading…
Reference in New Issue
Block a user