2022-10-21 18:38:19 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, rustPlatform
|
|
|
|
, fetchCrate
|
|
|
|
, pkg-config
|
2023-02-02 18:25:31 +00:00
|
|
|
, DarwinTools
|
2022-10-21 18:38:19 +00:00
|
|
|
, libusb1
|
|
|
|
, libiconv
|
|
|
|
, AppKit
|
|
|
|
, IOKit
|
|
|
|
}:
|
2021-04-13 19:44:15 +00:00
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "probe-run";
|
2023-05-24 13:37:59 +00:00
|
|
|
version = "0.3.9";
|
2021-04-13 19:44:15 +00:00
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
src = fetchCrate {
|
|
|
|
inherit pname version;
|
2023-05-24 13:37:59 +00:00
|
|
|
hash = "sha256-VNFLX+aPkanX573YpRok2JUWf74O7gtlgmuHkI30y2g=";
|
2021-04-13 19:44:15 +00:00
|
|
|
};
|
|
|
|
|
2023-05-24 13:37:59 +00:00
|
|
|
cargoHash = "sha256-cjr7lNwzqcIfjXn1CVHKgeRZlsJ0QG+0x9h6q5e3D0o=";
|
2021-04-13 19:44:15 +00:00
|
|
|
|
2022-10-21 18:38:19 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
pkg-config
|
2023-02-02 18:25:31 +00:00
|
|
|
] ++ lib.optionals stdenv.isDarwin [
|
|
|
|
DarwinTools
|
2022-10-21 18:38:19 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
libusb1
|
|
|
|
] ++ lib.optionals stdenv.isDarwin [
|
|
|
|
libiconv
|
|
|
|
AppKit
|
|
|
|
IOKit
|
|
|
|
];
|
2021-04-13 19:44:15 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
2022-09-22 12:36:57 +00:00
|
|
|
description = "Run embedded programs just like native ones";
|
2021-04-13 19:44:15 +00:00
|
|
|
homepage = "https://github.com/knurling-rs/probe-run";
|
2021-12-06 16:07:01 +00:00
|
|
|
changelog = "https://github.com/knurling-rs/probe-run/blob/v${version}/CHANGELOG.md";
|
2021-04-13 19:44:15 +00:00
|
|
|
license = with licenses; [ asl20 /* or */ mit ];
|
2022-03-30 09:31:56 +00:00
|
|
|
maintainers = with maintainers; [ hoverbear newam ];
|
2021-04-13 19:44:15 +00:00
|
|
|
};
|
|
|
|
}
|