cargo-hf2: add AppKit dependency for Darwin
This commit is contained in:
parent
6140589568
commit
3e0987eba1
2 changed files with 6 additions and 2 deletions
|
@ -5,6 +5,7 @@
|
|||
, libusb1
|
||||
, pkg-config
|
||||
, rustfmt
|
||||
, AppKit
|
||||
}:
|
||||
|
||||
rustPlatform.buildRustPackage rec {
|
||||
|
@ -25,7 +26,8 @@ rustPlatform.buildRustPackage rec {
|
|||
cargoSha256 = "sha256-5aTqiJ23XuY9MNIt3lVMIJ+33BZkcS02HbctIJrnEfo=";
|
||||
|
||||
nativeBuildInputs = [ pkg-config rustfmt ];
|
||||
buildInputs = [ libusb1 ];
|
||||
|
||||
buildInputs = [ libusb1 ] ++ lib.optionals stdenv.isDarwin [ AppKit ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Cargo Subcommand for Microsoft HID Flashing Library for UF2 Bootloaders ";
|
||||
|
|
|
@ -14389,7 +14389,9 @@ with pkgs;
|
|||
inherit (darwin.apple_sdk.frameworks) Security CoreFoundation;
|
||||
};
|
||||
|
||||
cargo-hf2 = callPackage ../development/tools/rust/cargo-hf2 { };
|
||||
cargo-hf2 = callPackage ../development/tools/rust/cargo-hf2 {
|
||||
inherit (darwin.apple_sdk.frameworks) AppKit;
|
||||
};
|
||||
cargo-inspect = callPackage ../development/tools/rust/cargo-inspect {
|
||||
inherit (darwin.apple_sdk.frameworks) Security;
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue