haskell-modules: only include glibc locales when using glibc

Fixes #43665.
Hopefully. :)
This commit is contained in:
Will Dietz 2018-07-17 08:42:55 -05:00
parent 8155016932
commit da5383006d
2 changed files with 2 additions and 2 deletions

View File

@ -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";

View File

@ -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"