cargo-embed: fix darwin build

This commit is contained in:
happysalada 2021-08-23 21:56:10 +09:00 committed by Raphael Megzari
parent a8628d80d8
commit 3e1c1d30b6
2 changed files with 6 additions and 2 deletions

@ -1,10 +1,12 @@
{ lib
, stdenv
, rustPlatform
, fetchFromGitHub
, libusb1
, libftdi1
, pkg-config
, rustfmt
, AppKit
}:
rustPlatform.buildRustPackage rec {
@ -21,7 +23,7 @@ rustPlatform.buildRustPackage rec {
cargoSha256 = "00p2rwqrax99kwadc8bfq8pbcijals2nzpx43wb03kwxl4955wn9";
nativeBuildInputs = [ pkg-config rustfmt ];
buildInputs = [ libusb1 libftdi1 ];
buildInputs = [ libusb1 libftdi1 ] ++ lib.optionals stdenv.isDarwin [ AppKit ];
cargoBuildFlags = [ "--features=ftdi" ];

@ -12234,7 +12234,9 @@ with pkgs;
cargo-deny = callPackage ../development/tools/rust/cargo-deny {
inherit (darwin.apple_sdk.frameworks) Security;
};
cargo-embed = callPackage ../development/tools/rust/cargo-embed { };
cargo-embed = callPackage ../development/tools/rust/cargo-embed {
inherit (darwin.apple_sdk.frameworks) AppKit;
};
cargo-expand = callPackage ../development/tools/rust/cargo-expand { };
cargo-feature = callPackage ../development/tools/rust/cargo-feature { };
cargo-flash = callPackage ../development/tools/rust/cargo-flash {