@@ -0,0 +1,25 @@
1+{ lib, rustPlatform, fetchFromGitHub, pkg-config, libusb1 }:
2+
3+rustPlatform.buildRustPackage rec {
4+ pname = "probe-run";
5+ version = "0.2.1";
6+
7+ src = fetchFromGitHub {
8+ owner = "knurling-rs";
9+ repo = pname;
10+ rev = "v${version}";
11+ sha256 = "QEUsigoSqVczrsSSDnOhTXm94JTXHgxeNY0tGsOaRyg=";
12+ };
13+
14+ cargoSha256 = "Fr5XWIUHXyfesouHi0Uryf/ZgB/rDDJ4G1BYGHw0QeQ=";
15+
16+ nativeBuildInputs = [ pkg-config ];
17+ buildInputs = [ libusb1 ];
18+
19+ meta = with lib; {
20+ description = "Run embedded programs just like native ones.";
21+ homepage = "https://github.com/knurling-rs/probe-run";
22+ license = with licenses; [ asl20 /* or */ mit ];
23+ maintainers = with maintainers; [ hoverbear ];
24+ };
25+}