Merge pull request #43666 from dtzWill/fix/haskell-glibc-locales-are-for-glibc

haskell-modules: only include glibc locales when using glibc

authored by Peter Simons and committed by GitHub 464cf105 ed31b92d

+2 -2
+1 -1
pkgs/development/haskell-modules/generic-stack-builder.nix
··· 27 27 28 28 buildInputs = 29 29 buildInputs ++ 30 - optional stdenv.isLinux glibcLocales ++ 30 + optional (stdenv.hostPlatform.libc == "glibc") glibcLocales ++ 31 31 [ ghc pkgconfig stack ]; 32 32 33 33 STACK_PLATFORM_VARIANT="nix";
+1 -1
pkgs/development/haskell-modules/make-package-set.nix
··· 128 128 preferLocalBuild = true; 129 129 phases = ["installPhase"]; 130 130 LANG = "en_US.UTF-8"; 131 - LOCALE_ARCHIVE = pkgs.lib.optionalString buildPlatform.isLinux "${buildPackages.glibcLocales}/lib/locale/locale-archive"; 131 + LOCALE_ARCHIVE = pkgs.lib.optionalString (buildPlatform.libc == "glibc") "${buildPackages.glibcLocales}/lib/locale/locale-archive"; 132 132 installPhase = '' 133 133 export HOME="$TMP" 134 134 mkdir -p "$out"