cargo-hf2: add AppKit dependency for Darwin

This commit is contained in:
Vincent Fischer 2022-08-23 14:56:52 +02:00
parent 6140589568
commit 3e0987eba1
No known key found for this signature in database
GPG key ID: DE16C7D1536DA72F
2 changed files with 6 additions and 2 deletions

View file

@ -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 ";

View file

@ -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;
};