probe-run: fix darwin build (#123494)
This commit is contained in:
parent
7e9451ffb3
commit
fbf1525f01
|
@ -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.";
|
||||
|
|
|
@ -265,7 +265,9 @@ in
|
|||
|
||||
html5validator = python3Packages.callPackage ../applications/misc/html5validator { };
|
||||
|
||||
probe-run = callPackage ../development/tools/rust/probe-run {};
|
||||
probe-run = callPackage ../development/tools/rust/probe-run {
|
||||
inherit (darwin.apple_sdk.frameworks) AppKit IOKit;
|
||||
};
|
||||
|
||||
proto-contrib = callPackage ../development/tools/proto-contrib {};
|
||||
|
||||
|
|
Loading…
Reference in New Issue