Skip to content

Commit

Permalink
glibc: weaken host==build check to canExecute
Browse files Browse the repository at this point in the history
  • Loading branch information
Adam Joseph authored and Adam Joseph committed Oct 26, 2023
1 parent 27a73cd commit b4371a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkgs/development/libraries/glibc/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b4371a5

Please sign in to comment.