cargo-embed: fix darwin build
This commit is contained in:
parent
a8628d80d8
commit
3e1c1d30b6
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user