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-03-30 09:31:56 +00:00
|
|
|
version = "0.3.2";
|
2021-04-13 19:44:15 +00:00
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
src = fetchCrate {
|
|
|
|
inherit pname version;
|
2022-03-30 09:31:56 +00:00
|
|
|
sha256 = "sha256-SXA77LXM1SuBJ8BH+ahwJl/3gWsCbdLXBiHZdJySWq0=";
|
2021-04-13 19:44:15 +00:00
|
|
|
};
|
|
|
|
|
2022-03-30 09:31:56 +00:00
|
|
|
cargoSha256 = "sha256-e9POSuA/I7IUKUOxMTfCWxNn0AicojpGQpxamzmHa7g=";
|
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
|
|
|
};
|
|
|
|
}
|