nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ lib, stdenv, rustPlatform, fetchCrate, pkg-config, libusb1, AppKit }:
2
3rustPlatform.buildRustPackage rec {
4 pname = "probe-rs-cli";
5 version = "0.12.0";
6
7 src = fetchCrate {
8 inherit pname version;
9 sha256 = "sha256-XYrB/aKuFCe0FNe6N9vqDdr408tAiN6YvT5BL6lCxmU=";
10 };
11
12 cargoSha256 = "sha256-aXSJMSGNl2fzob1j/qiPHHZLisYQeU1gUO5cYbzSHYA=";
13
14 nativeBuildInputs = [ pkg-config ];
15 buildInputs = [ libusb1 ] ++ lib.optionals stdenv.isDarwin [ AppKit ];
16
17 meta = with lib; {
18 description = "CLI tool for on-chip debugging and flashing of ARM chips";
19 homepage = "https://probe.rs/";
20 changelog = "https://github.com/probe-rs/probe-rs/blob/v${version}/CHANGELOG.md";
21 license = with licenses; [ asl20 /* or */ mit ];
22 maintainers = with maintainers; [ xgroleau ];
23 };
24}