2021-11-26 22:02:17 +00:00
|
|
|
{ lib, stdenv, rustPlatform, fetchCrate, pkg-config, libusb1
|
2021-05-18 14:35:37 +00:00
|
|
|
, libiconv, AppKit, IOKit }:
|
2021-04-13 04:40:33 +00:00
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "probe-run";
|
2021-11-26 22:02:17 +00:00
|
|
|
version = "0.3.1";
|
2021-04-13 04:40:33 +00:00
|
|
|
|
2021-11-26 22:02:17 +00:00
|
|
|
src = fetchCrate {
|
|
|
|
inherit pname version;
|
|
|
|
sha256 = "1nfbpdx378p988q75hka9r8zp3xb9zy3dnagcxmha6dca5dhgsdm";
|
2021-04-13 04:40:33 +00:00
|
|
|
};
|
|
|
|
|
2021-11-26 22:02:17 +00:00
|
|
|
cargoSha256 = "05p3vmar00215x4mwsvs5knf4wrwmpq52rmbbi6b4qaqs3gqaghy";
|
2021-04-13 04:40:33 +00:00
|
|
|
|
|
|
|
nativeBuildInputs = [ pkg-config ];
|
2021-05-18 14:35:37 +00:00
|
|
|
buildInputs = [ libusb1 ]
|
|
|
|
++ lib.optionals stdenv.isDarwin [ libiconv AppKit IOKit ];
|
2021-04-13 04:40:33 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Run embedded programs just like native ones.";
|
|
|
|
homepage = "https://github.com/knurling-rs/probe-run";
|
2021-11-15 15:00:30 +00:00
|
|
|
changelog = "https://github.com/knurling-rs/probe-run/blob/v${version}/CHANGELOG.md";
|
2021-04-13 04:40:33 +00:00
|
|
|
license = with licenses; [ asl20 /* or */ mit ];
|
|
|
|
maintainers = with maintainers; [ hoverbear ];
|
|
|
|
};
|
|
|
|
}
|