diff options
author | Vincent Fischer <fischervincent98@gmail.com> | 2022-08-23 14:56:52 +0200 |
---|---|---|
committer | Vincent Fischer <fischervincent98@gmail.com> | 2022-08-23 15:18:03 +0200 |
commit | 3e0987eba142b8bbb8b0e2eb25554c8e3f1f268f (patch) | |
tree | 96062fd45a2b5f33656f4fbdc41e16a028e38fae /pkgs/development/tools | |
parent | 61405895687427cb98a2f7bb83f8cc1e515c791e (diff) | |
download | nixpkgs-3e0987eba142b8bbb8b0e2eb25554c8e3f1f268f.tar nixpkgs-3e0987eba142b8bbb8b0e2eb25554c8e3f1f268f.tar.gz nixpkgs-3e0987eba142b8bbb8b0e2eb25554c8e3f1f268f.tar.bz2 nixpkgs-3e0987eba142b8bbb8b0e2eb25554c8e3f1f268f.tar.lz nixpkgs-3e0987eba142b8bbb8b0e2eb25554c8e3f1f268f.tar.xz nixpkgs-3e0987eba142b8bbb8b0e2eb25554c8e3f1f268f.tar.zst nixpkgs-3e0987eba142b8bbb8b0e2eb25554c8e3f1f268f.zip |
cargo-hf2: add AppKit dependency for Darwin
Diffstat (limited to 'pkgs/development/tools')
-rw-r--r-- | pkgs/development/tools/rust/cargo-hf2/default.nix | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/pkgs/development/tools/rust/cargo-hf2/default.nix b/pkgs/development/tools/rust/cargo-hf2/default.nix index 4d3076ca7d6..8813af645e9 100644 --- a/pkgs/development/tools/rust/cargo-hf2/default.nix +++ b/pkgs/development/tools/rust/cargo-hf2/default.nix @@ -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 "; |