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 ++
|
||||
optional stdenv.isLinux glibcLocales ++
|
||||
optional (stdenv.hostPlatform.libc == "glibc") glibcLocales ++
|
||||
[ ghc pkgconfig stack ];
|
||||
|
||||
STACK_PLATFORM_VARIANT="nix";
|
||||
|
@ -128,7 +128,7 @@ let
|
||||
preferLocalBuild = true;
|
||||
phases = ["installPhase"];
|
||||
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 = ''
|
||||
export HOME="$TMP"
|
||||
mkdir -p "$out"
|
||||
|
Loading…
Reference in New Issue
Block a user