cargo-bisect-rustc: fix darwin build

This commit is contained in:
Raghav Sood 2024-05-14 00:10:12 +08:00
parent 891fee7487
commit 182513d558
No known key found for this signature in database
GPG Key ID: 13D53E9EB65DE19C
2 changed files with 8 additions and 5 deletions

View File

@ -2,13 +2,13 @@
stdenv,
lib,
fetchFromGitHub,
darwin,
rustPlatform,
pkg-config,
openssl,
runCommand,
patchelf,
zlib,
Security,
}:
rustPlatform.buildRustPackage rec {
@ -43,7 +43,12 @@ rustPlatform.buildRustPackage rec {
nativeBuildInputs = [ pkg-config ];
buildInputs = [ openssl ] ++ lib.optionals stdenv.isDarwin [ Security ];
buildInputs =
[ openssl ]
++ lib.optionals stdenv.isDarwin [
darwin.apple_sdk.frameworks.Security
darwin.apple_sdk.frameworks.SystemConfiguration
];
cargoHash = "sha256-CgEs0cejquFRY3VN6CgbE23Gipg+LEuWp/jSIkITrjw=";

View File

@ -16618,9 +16618,7 @@ with pkgs;
};
cargo-benchcmp = callPackage ../development/tools/rust/cargo-benchcmp { };
cargo-binstall = callPackage ../development/tools/rust/cargo-binstall { };
cargo-bisect-rustc = callPackage ../development/tools/rust/cargo-bisect-rustc {
inherit (darwin.apple_sdk.frameworks) Security;
};
cargo-bisect-rustc = callPackage ../development/tools/rust/cargo-bisect-rustc { };
cargo-bitbake = callPackage ../development/tools/rust/cargo-bitbake { };
cargo-c = callPackage ../development/tools/rust/cargo-c {
inherit (darwin.apple_sdk.frameworks) CoreFoundation Security;