glibc: weaken host==build check to canExecute

This commit is contained in:
Adam Joseph 2023-10-23 14:33:35 -07:00 committed by Adam Joseph
parent 27a73cd176
commit b4371a5cea

View File

@ -95,7 +95,7 @@ in
"user-defined-trusted-dirs=${libgcc}/lib"
];
postInstall = previousAttrs.postInstall + (if stdenv.hostPlatform == stdenv.buildPlatform then ''
postInstall = previousAttrs.postInstall + (if stdenv.buildPlatform.canExecute stdenv.hostPlatform then ''
echo SUPPORTED-LOCALES=C.UTF-8/UTF-8 > ../glibc-2*/localedata/SUPPORTED
make -j''${NIX_BUILD_CORES:-1} localedata/install-locales
'' else lib.optionalString stdenv.buildPlatform.isLinux