diff --git a/lib/rust/mkAttrs.nix b/lib/rust/mkAttrs.nix index b60ea06..ef645fb 100644 --- a/lib/rust/mkAttrs.nix +++ b/lib/rust/mkAttrs.nix @@ -337,8 +337,10 @@ with self.lib.rust.targets; CARGO_BUILD_TARGET = target; } - // optionalAttrs (pkgsCross.stdenv.hostPlatform.isDarwin && pkgsCross.stdenv.hostPlatform.isAarch64) { - # Removing vendor references here invalidates the signature, which is required on aarch64-darwin + // optionalAttrs pkgsCross.stdenv.hostPlatform.isDarwin { + # Removing vendor references here: + # - invalidates the signature, which is required on aarch64-darwin + # - fails on Darwin dylibs starting with Rust 1.79 doNotRemoveReferencesToVendorDir = true; } # Use `rust-lld` linker and Zig C compiler for Darwin targets