summary refs log tree commit diff
diff options
context:
space:
mode:
authorAdam Joseph <adam@westernsemico.com>2023-10-23 14:33:35 -0700
committerAdam Joseph <54836058+amjoseph-nixpkgs@users.noreply.github.com>2023-10-26 06:12:33 +0000
commitb4371a5cea9ce20942653d18d432f5d18dd4f456 (patch)
tree15b66239b45fc747621198ea027cd8b08b1eb41e
parent27a73cd1769ca05e9a1eb184edc9df9c844af733 (diff)
downloadnixpkgs-b4371a5cea9ce20942653d18d432f5d18dd4f456.tar
nixpkgs-b4371a5cea9ce20942653d18d432f5d18dd4f456.tar.gz
nixpkgs-b4371a5cea9ce20942653d18d432f5d18dd4f456.tar.bz2
nixpkgs-b4371a5cea9ce20942653d18d432f5d18dd4f456.tar.lz
nixpkgs-b4371a5cea9ce20942653d18d432f5d18dd4f456.tar.xz
nixpkgs-b4371a5cea9ce20942653d18d432f5d18dd4f456.tar.zst
nixpkgs-b4371a5cea9ce20942653d18d432f5d18dd4f456.zip
glibc: weaken host==build check to canExecute
-rw-r--r--pkgs/development/libraries/glibc/default.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgs/development/libraries/glibc/default.nix b/pkgs/development/libraries/glibc/default.nix
index 32e9b04d229..11676560e80 100644
--- a/pkgs/development/libraries/glibc/default.nix
+++ b/pkgs/development/libraries/glibc/default.nix
@@ -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