@@ -1,4 +1,4 @@
1−{ lib, fetchFromGitHub, rustPlatform, pkg-config, libusb1 }:
1+{ lib, stdenv, fetchFromGitHub, rustPlatform, pkg-config, libusb1, AppKit }:
22
33rustPlatform.buildRustPackage rec {
44 pname = "ecpdap";
@@ -15,7 +15,8 @@ rustPlatform.buildRustPackage rec {
1515
1616 nativeBuildInputs = [ pkg-config ];
1717
18− buildInputs = [ libusb1 ];
18+ buildInputs = [ libusb1 ]
19+ ++ lib.optional stdenv.isDarwin AppKit;
1920
2021 postInstall = ''
2122 mkdir -p $out/etc/udev/rules.d