on iko/ghcjs-patch-master help sign in
Fix: set locale.
commit9c0b4722ee6f699366285b4a3b072dc2b8c37d3d authorMoritz Angermann <moritz.angermann@gmail.com> dateFri 30 Nov 2018, 09:13 (8 years ago) parentd9246f3
1 file changed+4−1
builder/comp-builder.nix+4−1
builder/comp-builder.nix+4−1
@@ -1,4 +1,4 @@
1−{ stdenv, ghc, lib, pkgconfig, writeText, runCommand, haskellLib, nonReinstallablePkgs }:
1+{ stdenv, buildPackages, ghc, lib, pkgconfig, writeText, runCommand, haskellLib, nonReinstallablePkgs }:
22
33{ componentId
44, component
@@ -144,6 +144,8 @@ in stdenv.mkDerivation ({
144144 };
145145
146146 CABAL_CONFIG = configFiles + /cabal.config;
147+ LANG = "en_US.UTF-8"; # GHC needs the locale configured during the Haddock phase.
148+ LC_ALL = "en_US.UTF-8";
147149
148150 enableParallelBuilding = true;
149151
@@ -217,4 +219,5 @@ in stdenv.mkDerivation ({
217219// lib.optionalAttrs (postCheck != "") { inherit postCheck; }
218220// lib.optionalAttrs (preInstall != "") { inherit preInstall; }
219221// lib.optionalAttrs (postInstall != "") { inherit postInstall; }
222+// lib.optionalAttrs (stdenv.buildPlatform.libc == "glibc"){ LOCALE_ARCHIVE = "${buildPackages.glibcLocales}/lib/locale/locale-archive"; }
220223)