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