1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-20 12:42:24 +00:00

pkgs/build-support/cabal: set LANG="en_US.UTF-8" for the Haddock run

Haskell packages that contain non-ascii characters in their .cabal file
or somewhere else in their haddock documentation fail to compile under
nixpkgs and usually flagged with noHaddock = true. I wanted to do the
same for modularArithmentic, when I realized that we just have to set
the locale to some UTF-8 compatible locale in build-support/cabal to fix
this issue correctly.
This commit is contained in:
Gergely Risko 2013-08-26 11:59:51 +02:00 committed by Peter Simons
parent e13720c3c4
commit 27905ce17e

View file

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