lol

cargo-c: fix darwin build (#95575)

authored by

zowoq and committed by
GitHub
36e0fa93 3cc44ba0

+6 -2
+3 -1
pkgs/development/tools/rust/cargo-c/default.nix
··· 1 1 { rustPlatform, stdenv, lib, fetchFromGitHub, fetchurl 2 2 , pkg-config, openssl 3 + , CoreFoundation, libiconv, Security 3 4 }: 4 5 5 6 rustPlatform.buildRustPackage rec { ··· 30 31 cargoSha256 = "1gwyszpcmss2d0lm5hvf3b48jy7b0fm7xizhrl3wd6rzw7pg06zd"; 31 32 32 33 nativeBuildInputs = [ pkg-config ]; 33 - buildInputs = [ openssl ]; 34 + buildInputs = [ openssl ] 35 + ++ stdenv.lib.optionals stdenv.isDarwin [ CoreFoundation libiconv Security ]; 34 36 35 37 meta = with lib; { 36 38 description = "A cargo subcommand to build and install C-ABI compatibile dynamic and static libraries";
+3 -1
pkgs/top-level/all-packages.nix
··· 9417 9417 cargo-audit = callPackage ../tools/package-management/cargo-audit { 9418 9418 inherit (darwin.apple_sdk.frameworks) Security; 9419 9419 }; 9420 - cargo-c = callPackage ../development/tools/rust/cargo-c { }; 9420 + cargo-c = callPackage ../development/tools/rust/cargo-c { 9421 + inherit (darwin.apple_sdk.frameworks) CoreFoundation Security; 9422 + }; 9421 9423 cargo-deb = callPackage ../tools/package-management/cargo-deb { 9422 9424 inherit (darwin.apple_sdk.frameworks) Security; 9423 9425 };