glibcLocales, glibcLocalesUtf8: only define non-null on linux-glibc

Before the change glibcLocales was pulled in on musl (built successfully
but was not needed: musl does not know how to load glibc locales) and
on android (failed build there). Android failed eval due to the
headers -> zip -> libc recursion.

The change limits glibcLocales down to linux && gnu to target linux-glibc.
This commit is contained in:
Sergei Trofimovich 2022-07-13 20:07:50 +01:00
parent bee8b6b389
commit 38134efc76

View file

@ -17869,13 +17869,13 @@ with pkgs;
relibc = callPackage ../development/libraries/relibc { };
# Only supported on Linux
# Only supported on Linux and only on glibc
glibcLocales =
if stdenv.hostPlatform.isLinux
if stdenv.hostPlatform.isLinux && stdenv.hostPlatform.isGnu
then callPackage ../development/libraries/glibc/locales.nix { }
else null;
glibcLocalesUtf8 =
if stdenv.hostPlatform.isLinux
if stdenv.hostPlatform.isLinux && stdenv.hostPlatform.isGnu
then callPackage ../development/libraries/glibc/locales.nix { allLocales = false; }
else null;