2021-12-06 16:07:01 +00:00
|
|
|
{ lib, stdenv, rustPlatform, fetchCrate, pkg-config, libusb1
|
2021-05-20 23:08:51 +00:00
|
|
|
, libiconv, AppKit, IOKit }:
|
2021-04-13 19:44:15 +00:00
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "probe-run";
|
2022-06-16 17:23:12 +00:00
|
|
|
version = "0.3.3";
|
2021-04-13 19:44:15 +00:00
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
src = fetchCrate {
|
|
|
|
inherit pname version;
|
2022-06-16 17:23:12 +00:00
|
|
|
sha256 = "sha256-7o0aRiCxWoDoMysXIPyiBqH/8TtFo87im6Y0OFL0cTA=";
|
2021-04-13 19:44:15 +00:00
|
|
|
};
|
|
|
|
|
2022-06-16 17:23:12 +00:00
|
|
|
cargoSha256 = "sha256-vREz3FTZXMrc18LXIycJXX6SgW6IKGIgL/+79dMfNjk=";
|
2021-04-13 19:44:15 +00:00
|
|
|
|
|
|
|
nativeBuildInputs = [ pkg-config ];
|
2021-05-20 23:08:51 +00:00
|
|
|
buildInputs = [ libusb1 ]
|
|
|
|
++ lib.optionals stdenv.isDarwin [ libiconv AppKit IOKit ];
|
2021-04-13 19:44:15 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Run embedded programs just like native ones.";
|
|
|
|
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
|
|
|
};
|
|
|
|
}
|