pkgs/build-support/cabal: fix the logic of the 'noHaddock' flag that was broken in 27905ce17e

This commit is contained in:
Peter Simons 2013-08-30 10:42:40 +02:00
parent c9f7992282
commit 9f541bcdde

View file

@ -150,7 +150,7 @@ assert enableCheckPhase -> stdenv.lib.versionOlder "7" ghc.ghcVersion;
./Setup build
export GHC_PACKAGE_PATH=$(${ghc.GHCPackages})
if [ -n "$noHaddock" ]; then
if [ -z "$noHaddock" ]; then
export LANG="en_US.UTF-8"
./Setup haddock
unset LANG