2023-01-20 10:41:00 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, rustPlatform
|
|
|
|
, fetchCrate
|
|
|
|
, pkg-config
|
|
|
|
, libusb1
|
|
|
|
, openssl
|
|
|
|
, DarwinTools
|
|
|
|
, AppKit
|
|
|
|
}:
|
2022-02-20 05:27:41 +00:00
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "probe-rs-cli";
|
2023-04-12 12:48:02 +00:00
|
|
|
version = "0.18.0";
|
2022-02-20 05:27:41 +00:00
|
|
|
|
|
|
|
src = fetchCrate {
|
|
|
|
inherit pname version;
|
2023-04-12 12:48:02 +00:00
|
|
|
hash = "sha256-5p3SxroztyJnBN/lzFagbpmAAIQmR9iwWHDMxuighDA=";
|
2022-02-20 05:27:41 +00:00
|
|
|
};
|
|
|
|
|
2023-04-12 12:48:02 +00:00
|
|
|
cargoHash = "sha256-0osWLXrpz6/CnCK1mfwnwqk+OsZLxO2JxbgRnqMhLeE=";
|
2022-02-20 05:27:41 +00:00
|
|
|
|
2023-01-20 10:41:00 +00:00
|
|
|
nativeBuildInputs = [ pkg-config ] ++ lib.optionals stdenv.isDarwin [ DarwinTools ];
|
|
|
|
|
|
|
|
buildInputs = [ libusb1 openssl ] ++ lib.optionals stdenv.isDarwin [ AppKit ];
|
2022-02-20 05:27:41 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "CLI tool for on-chip debugging and flashing of ARM chips";
|
|
|
|
homepage = "https://probe.rs/";
|
|
|
|
changelog = "https://github.com/probe-rs/probe-rs/blob/v${version}/CHANGELOG.md";
|
|
|
|
license = with licenses; [ asl20 /* or */ mit ];
|
2022-07-18 16:21:45 +00:00
|
|
|
maintainers = with maintainers; [ xgroleau newam ];
|
2022-02-20 05:27:41 +00:00
|
|
|
};
|
|
|
|
}
|