haskell-ng: rename "noHaddock" attribute to "doHaddock"

This makes the attribute (a) consistent with "doCheck" and friends and (b)
avoids the double negation "noHaddock = false" meaning "doHaddock = true".

Fixes https://github.com/NixOS/cabal2nix/issues/63.
This commit is contained in:
Peter Simons
2015-01-18 12:58:31 +01:00
parent 8c833f2a12
commit 380114738f
4 changed files with 8 additions and 8 deletions
@@ -27,7 +27,7 @@
, jailbreak ? false
, license
, maintainers ? []
, noHaddock ? false
, doHaddock ? true
, passthru ? {}
, pkgconfigDepends ? []
, platforms ? ghc.meta.platforms
@@ -214,7 +214,7 @@ stdenv.mkDerivation ({
haddockPhase = ''
runHook preHaddock
${optionalString (!noHaddock && hasActiveLibrary) ''
${optionalString (doHaddock && hasActiveLibrary) ''
./Setup haddock --html \
${optionalString doHoogle "--hoogle"} \
${optionalString (hasActiveLibrary && hyperlinkSource) "--hyperlink-source"}