at 24.05-pre 33 lines 836 B view raw
1{ lib 2, stdenv 3, rustPlatform 4, fetchCrate 5, pkg-config 6, libusb1 7, DarwinTools 8, AppKit 9}: 10 11rustPlatform.buildRustPackage rec { 12 pname = "rtthost"; 13 version = "0.21.0"; 14 15 src = fetchCrate { 16 inherit pname version; 17 hash = "sha256-Vp2TXKDr6Mu4CD6RlHjTL04FIShzKXwNZmu0PIqx1FY="; 18 }; 19 20 cargoHash = "sha256-XRxijak3kBMYCx9u39OWvqz3tjnKipjcV3DPEUBYrvQ="; 21 22 nativeBuildInputs = [ pkg-config ] ++ lib.optionals stdenv.isDarwin [ DarwinTools ]; 23 24 buildInputs = [ libusb1 ] ++ lib.optionals stdenv.isDarwin [ AppKit ]; 25 26 meta = with lib; { 27 description = "RTT (Real-Time Transfer) client"; 28 homepage = "https://probe.rs/"; 29 changelog = "https://github.com/probe-rs/probe-rs/blob/v${version}/CHANGELOG.md"; 30 license = with licenses; [ asl20 /* or */ mit ]; 31 maintainers = with maintainers; [ samueltardieu ]; 32 }; 33}