probe-run: fix darwin build (#123494)

This commit is contained in:
Stéphan Kochen
2021-05-18 10:35:37 -04:00
committed by GitHub
parent 7e9451ffb3
commit fbf1525f01
2 changed files with 7 additions and 3 deletions
@@ -1,4 +1,5 @@
{ lib, rustPlatform, fetchFromGitHub, pkg-config, libusb1 }:
{ lib, stdenv, rustPlatform, fetchFromGitHub, pkg-config, libusb1
, libiconv, AppKit, IOKit }:
rustPlatform.buildRustPackage rec {
pname = "probe-run";
@@ -14,7 +15,8 @@ rustPlatform.buildRustPackage rec {
cargoSha256 = "HmDKfb8F6sGnaX64FR3No2GbBYm4bVopbjs8d35WiZQ=";
nativeBuildInputs = [ pkg-config ];
buildInputs = [ libusb1 ];
buildInputs = [ libusb1 ]
++ lib.optionals stdenv.isDarwin [ libiconv AppKit IOKit ];
meta = with lib; {
description = "Run embedded programs just like native ones.";