haskell-generic-builder: set locale to "UTF-8" in nix-shell environments
The package builder did this already, but I forgot to add the setting in the interactive environment. Fixes https://github.com/NixOS/nixpkgs/issues/5904.
This commit is contained in:
parent
51902ba32d
commit
69cda1a7c0
@ -252,6 +252,8 @@ stdenv.mkDerivation ({
|
|||||||
env = stdenv.mkDerivation {
|
env = stdenv.mkDerivation {
|
||||||
name = "interactive-${optionalString hasActiveLibrary "haskell-"}${pname}-${version}-environment";
|
name = "interactive-${optionalString hasActiveLibrary "haskell-"}${pname}-${version}-environment";
|
||||||
nativeBuildInputs = [ ghcEnv systemBuildInputs ];
|
nativeBuildInputs = [ ghcEnv systemBuildInputs ];
|
||||||
|
LANG = "en_US.UTF-8";
|
||||||
|
LOCALE_ARCHIVE = optionalString stdenv.isLinux "${glibcLocales}/lib/locale/locale-archive";
|
||||||
shellHook = ''
|
shellHook = ''
|
||||||
export NIX_GHC="${ghcEnv}/bin/ghc"
|
export NIX_GHC="${ghcEnv}/bin/ghc"
|
||||||
export NIX_GHCPKG="${ghcEnv}/bin/ghc"
|
export NIX_GHCPKG="${ghcEnv}/bin/ghc"
|
||||||
|
Loading…
Reference in New Issue
Block a user