nixpkgs/pkgs/development/tools/rust/probe-rs-cli/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

35 lines
889 B
Nix
Raw Normal View History

2023-01-14 19:30:27 +00:00
{ lib
, stdenv
, rustPlatform
, fetchCrate
, pkg-config
, libusb1
, openssl
, DarwinTools
, AppKit
}:
2022-02-16 19:05:24 +00:00
rustPlatform.buildRustPackage rec {
pname = "probe-rs-cli";
2023-01-29 22:12:31 +00:00
version = "0.16.0";
2022-02-16 19:05:24 +00:00
src = fetchCrate {
inherit pname version;
2023-01-29 22:12:31 +00:00
sha256 = "sha256-YNOD0hDDQ6M496m9lps28UX41pMO1r/CE30rcS53h48=";
2022-02-16 19:05:24 +00:00
};
2023-01-29 22:12:31 +00:00
cargoSha256 = "sha256-/1bnDtfNxnOI4Inmnd+r2epT236ghQsiNuoAuROEfPM=";
2022-02-16 19:05:24 +00:00
2023-01-14 19:30:27 +00:00
nativeBuildInputs = [ pkg-config ] ++ lib.optionals stdenv.isDarwin [ DarwinTools ];
buildInputs = [ libusb1 openssl ] ++ lib.optionals stdenv.isDarwin [ AppKit ];
2022-02-16 19:05:24 +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-15 05:01:17 +00:00
maintainers = with maintainers; [ xgroleau newam ];
2022-02-16 19:05:24 +00:00
};
}