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-28 18:33:27 +00:00
version = "0.14.2";
2022-02-16 19:05:24 +00:00
src = fetchCrate {
inherit pname version;
2023-01-28 18:33:27 +00:00
sha256 = "sha256-CrBgj0M3slhPrAYc2+I80ZfUC/CJzcmFwLc9yX2SSR4=";
2022-02-16 19:05:24 +00:00
};
2023-01-28 18:33:27 +00:00
cargoSha256 = "sha256-nHjVldLsi9Xr6pPOeLpb6anvno2244g/LNIv7DnbSI4=";
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
};
}