2022-10-21 18:38:19 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, rustPlatform
|
|
|
|
, fetchCrate
|
|
|
|
, pkg-config
|
|
|
|
, libusb1
|
|
|
|
, libiconv
|
|
|
|
, AppKit
|
|
|
|
, IOKit
|
|
|
|
}:
|
2021-04-13 19:44:15 +00:00
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "probe-run";
|
2022-10-21 18:38:19 +00:00
|
|
|
version = "0.3.5";
|
2021-04-13 19:44:15 +00:00
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
src = fetchCrate {
|
|
|
|
inherit pname version;
|
2022-10-21 18:38:19 +00:00
|
|
|
sha256 = "sha256-C9JxQVsS1Bv9euQ7l+p5aehiGLKdrUMcno9z8UoZKR4=";
|
2021-04-13 19:44:15 +00:00
|
|
|
};
|
|
|
|
|
2022-10-21 18:38:19 +00:00
|
|
|
cargoSha256 = "sha256-kmdRwAq6EOniGHC7JhB6Iov1E4hbQbxHlOcc6gUDOhY=";
|
2021-04-13 19:44:15 +00:00
|
|
|
|
2022-10-21 18:38:19 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
pkg-config
|
|
|
|
];
|
|
|
|
|
|
|
|
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
|
|
|
};
|
|
|
|
}
|