cargo-c: fix darwin build (#95575)
This commit is contained in:
parent
3cc44ba04e
commit
36e0fa9385
2 changed files with 6 additions and 2 deletions
|
@ -1,5 +1,6 @@
|
|||
{ rustPlatform, stdenv, lib, fetchFromGitHub, fetchurl
|
||||
, pkg-config, openssl
|
||||
, CoreFoundation, libiconv, Security
|
||||
}:
|
||||
|
||||
rustPlatform.buildRustPackage rec {
|
||||
|
@ -30,7 +31,8 @@ rustPlatform.buildRustPackage rec {
|
|||
cargoSha256 = "1gwyszpcmss2d0lm5hvf3b48jy7b0fm7xizhrl3wd6rzw7pg06zd";
|
||||
|
||||
nativeBuildInputs = [ pkg-config ];
|
||||
buildInputs = [ openssl ];
|
||||
buildInputs = [ openssl ]
|
||||
++ stdenv.lib.optionals stdenv.isDarwin [ CoreFoundation libiconv Security ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "A cargo subcommand to build and install C-ABI compatibile dynamic and static libraries";
|
||||
|
|
|
@ -9417,7 +9417,9 @@ in
|
|||
cargo-audit = callPackage ../tools/package-management/cargo-audit {
|
||||
inherit (darwin.apple_sdk.frameworks) Security;
|
||||
};
|
||||
cargo-c = callPackage ../development/tools/rust/cargo-c { };
|
||||
cargo-c = callPackage ../development/tools/rust/cargo-c {
|
||||
inherit (darwin.apple_sdk.frameworks) CoreFoundation Security;
|
||||
};
|
||||
cargo-deb = callPackage ../tools/package-management/cargo-deb {
|
||||
inherit (darwin.apple_sdk.frameworks) Security;
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue