probe-run: fix darwin build (#123494)

This commit is contained in:
Stéphan Kochen 2021-05-18 16:35:37 +02:00 committed by GitHub
parent 7e9451ffb3
commit fbf1525f01
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 3 deletions

View File

@ -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.";

View File

@ -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 {};