Merge pull request #135441 from happysalada/cargo_flash_darwin
cargo-flash: fix darwin build
This commit is contained in:
commit
e68ca27003
|
@ -7,6 +7,7 @@
|
|||
, pkg-config
|
||||
, rustfmt
|
||||
, Security
|
||||
, AppKit
|
||||
}:
|
||||
|
||||
rustPlatform.buildRustPackage rec {
|
||||
|
@ -23,7 +24,7 @@ rustPlatform.buildRustPackage rec {
|
|||
cargoSha256 = "sha256-f5vUMdyz3vDh2yE0pMKZiknsqTAKkuvTCtlgb6/gaLc=";
|
||||
|
||||
nativeBuildInputs = [ pkg-config rustfmt ];
|
||||
buildInputs = [ libusb1 openssl ] ++ lib.optionals stdenv.isDarwin [ Security ];
|
||||
buildInputs = [ libusb1 openssl ] ++ lib.optionals stdenv.isDarwin [ Security AppKit ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "A cargo extension for working with microcontrollers";
|
||||
|
|
|
@ -12240,7 +12240,7 @@ with pkgs;
|
|||
cargo-expand = callPackage ../development/tools/rust/cargo-expand { };
|
||||
cargo-feature = callPackage ../development/tools/rust/cargo-feature { };
|
||||
cargo-flash = callPackage ../development/tools/rust/cargo-flash {
|
||||
inherit (darwin.apple_sdk.frameworks) Security;
|
||||
inherit (darwin.apple_sdk.frameworks) Security AppKit;
|
||||
};
|
||||
cargo-fund = callPackage ../development/tools/rust/cargo-fund {
|
||||
inherit (darwin.apple_sdk.frameworks) Security;
|
||||
|
|
Loading…
Reference in a new issue