@@ -1,4 +1,5 @@
1−{ lib, rustPlatform, fetchFromGitHub, pkg-config, libusb1 }:
1+{ lib, stdenv, rustPlatform, fetchFromGitHub, pkg-config, libusb1
2+, libiconv, AppKit, IOKit }:
23
34rustPlatform.buildRustPackage rec {
45 pname = "probe-run";
@@ -14,7 +15,8 @@ rustPlatform.buildRustPackage rec {
1415 cargoSha256 = "HmDKfb8F6sGnaX64FR3No2GbBYm4bVopbjs8d35WiZQ=";
1516
1617 nativeBuildInputs = [ pkg-config ];
17− buildInputs = [ libusb1 ];
18+ buildInputs = [ libusb1 ]
19+ ++ lib.optionals stdenv.isDarwin [ libiconv AppKit IOKit ];
1820
1921 meta = with lib; {
2022 description = "Run embedded programs just like native ones.";