haskell-modules: only include glibc locales when using glibc

Fixes #43665.
Hopefully. :)
This commit is contained in:
Will Dietz
2018-07-17 08:44:17 -05:00
parent 8155016932
commit da5383006d
2 changed files with 2 additions and 2 deletions
@@ -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"