at 23.05-pre 24 lines 801 B view raw
1{ lib, stdenv, rustPlatform, fetchCrate, pkg-config, libusb1, AppKit }: 2 3rustPlatform.buildRustPackage rec { 4 pname = "probe-rs-cli"; 5 version = "0.13.0"; 6 7 src = fetchCrate { 8 inherit pname version; 9 sha256 = "sha256-3aKRUABJ1LkRGzwDSwQZeNXKGeRmTlbHKSGewfKn+2Q="; 10 }; 11 12 cargoSha256 = "sha256-bOfdpRVm9zqpFF/YmD06u4OKdyqXwfCSTNlTIZZygeg="; 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 newam ]; 23 }; 24}