haskell-modules: only include glibc locales when using glibc
Fixes #43665. Hopefully. :)
This commit is contained in:
parent
8155016932
commit
da5383006d
@ -27,7 +27,7 @@ in stdenv.mkDerivation (args // {
|
|||||||
|
|
||||||
buildInputs =
|
buildInputs =
|
||||||
buildInputs ++
|
buildInputs ++
|
||||||
optional stdenv.isLinux glibcLocales ++
|
optional (stdenv.hostPlatform.libc == "glibc") glibcLocales ++
|
||||||
[ ghc pkgconfig stack ];
|
[ ghc pkgconfig stack ];
|
||||||
|
|
||||||
STACK_PLATFORM_VARIANT="nix";
|
STACK_PLATFORM_VARIANT="nix";
|
||||||
|
@ -128,7 +128,7 @@ let
|
|||||||
preferLocalBuild = true;
|
preferLocalBuild = true;
|
||||||
phases = ["installPhase"];
|
phases = ["installPhase"];
|
||||||
LANG = "en_US.UTF-8";
|
LANG = "en_US.UTF-8";
|
||||||
LOCALE_ARCHIVE = pkgs.lib.optionalString buildPlatform.isLinux "${buildPackages.glibcLocales}/lib/locale/locale-archive";
|
LOCALE_ARCHIVE = pkgs.lib.optionalString (buildPlatform.libc == "glibc") "${buildPackages.glibcLocales}/lib/locale/locale-archive";
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
export HOME="$TMP"
|
export HOME="$TMP"
|
||||||
mkdir -p "$out"
|
mkdir -p "$out"
|
||||||
|
Loading…
Reference in New Issue
Block a user