Merge pull request #160250 from xgroleau/add/probe-rs-cli

probe-rs-cli: init 0.12.0
This commit is contained in:
Pascal Bach 2022-02-17 21:37:11 +01:00 committed by GitHub
commit 20f43c473c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 34 additions and 0 deletions

View File

@ -13222,6 +13222,12 @@
githubId = 1297598;
name = "Konrad Borowski";
};
xgroleau = {
email = "xgroleau@gmail.com";
github = "xgroleau";
githubId = 31734358;
name = "Xavier Groleau";
};
xiorcale = {
email = "quentin.vaucher@pm.me";
github = "xiorcale";

View File

@ -0,0 +1,24 @@
{ lib, stdenv, rustPlatform, fetchCrate, pkg-config, libusb1, AppKit }:
rustPlatform.buildRustPackage rec {
pname = "probe-rs-cli";
version = "0.12.0";
src = fetchCrate {
inherit pname version;
sha256 = "sha256-XYrB/aKuFCe0FNe6N9vqDdr408tAiN6YvT5BL6lCxmU=";
};
cargoSha256 = "sha256-aXSJMSGNl2fzob1j/qiPHHZLisYQeU1gUO5cYbzSHYA=";
nativeBuildInputs = [ pkg-config ];
buildInputs = [ libusb1 ] ++ lib.optionals stdenv.isDarwin [ AppKit ];
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 ];
maintainers = with maintainers; [ xgroleau ];
};
}

View File

@ -347,6 +347,10 @@ with pkgs;
buildcatrust = with python3.pkgs; toPythonApplication buildcatrust;
probe-rs-cli = callPackage ../development/tools/rust/probe-rs-cli {
inherit (darwin.apple_sdk.frameworks) AppKit;
};
probe-run = callPackage ../development/tools/rust/probe-run {
inherit (darwin.apple_sdk.frameworks) AppKit IOKit;
};