diff --git a/pkgs/build-support/rust/default-crate-overrides.nix b/pkgs/build-support/rust/default-crate-overrides.nix index 841cad09efa1..9f88e8a067bc 100644 --- a/pkgs/build-support/rust/default-crate-overrides.nix +++ b/pkgs/build-support/rust/default-crate-overrides.nix @@ -170,7 +170,7 @@ in }; security-framework-sys = attr: { - propagatedBuildInputs = [ Security ]; + propagatedBuildInputs = lib.optional stdenv.isDarwin Security; }; sequoia-openpgp = attrs: {