about summary refs log tree commit diff
diff options
context:
space:
mode:
authorRandy Eckenrode <randy@largeandhighquality.com>2024-07-04 16:52:24 -0400
committerRandy Eckenrode <randy@largeandhighquality.com>2024-07-04 16:53:00 -0400
commit879556bea51cee21924379782cda3215effbcc29 (patch)
treedc512c268e4acc2fc06f05e46195dfade7e24082
parent33c0dd692b0cbc47e6edb4e5c158378fe4962769 (diff)
binutils: make conditional on Darwin to avoid Linux rebuilds
-rw-r--r--pkgs/development/tools/misc/binutils/default.nix3
1 files changed, 2 insertions, 1 deletions
diff --git a/pkgs/development/tools/misc/binutils/default.nix b/pkgs/development/tools/misc/binutils/default.nix
index 63b3f70e3970f..308ac9d5913fb 100644
--- a/pkgs/development/tools/misc/binutils/default.nix
+++ b/pkgs/development/tools/misc/binutils/default.nix
@@ -88,7 +88,8 @@ stdenv.mkDerivation (finalAttrs: {
     # not need to know binutils' BINDIR at all. It's an absolute path
     # where libraries are stored.
     ./plugins-no-BINDIR.patch
-
+  ] ++ lib.optionals buildPlatform.isDarwin [
+    # Note: Conditional to avoid Linux rebuilds on staging-next. Remove the conditional with the next update.
     # ld64 needs `-undefined dynamic_lookup` to link `libctf-nobfd.dylib`, but the Darwin
     # version detection in `libtool.m4` fails to detect the Darwin version correctly.
     ./0001-libtool.m4-update-macos-version-detection-block.patch