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:
parent
e13720c3c4
commit
27905ce17e
|
@ -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"
|
||||
'';
|
||||
|
|
Loading…
Reference in a new issue