Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at litex 32 lines 870 B view raw
1{ lib 2, stdenv 3, rustPlatform 4, fetchCrate 5, libusb1 6, pkg-config 7, DarwinTools 8, AppKit 9}: 10 11rustPlatform.buildRustPackage rec { 12 pname = "cargo-flash"; 13 version = "0.18.0"; 14 15 src = fetchCrate { 16 inherit pname version; 17 hash = "sha256-RCcl0cZhGOKdwlNY7wuCBP0AgoNSU3c/LfCM2pPjsoo="; 18 }; 19 20 cargoHash = "sha256-NGwWmqP4D5LdXTwo+B+cj+i66Ec9fB723h2kggugLgg="; 21 22 nativeBuildInputs = [ pkg-config ] ++ lib.optionals stdenv.isDarwin [ DarwinTools ]; 23 buildInputs = [ libusb1 ] ++ lib.optionals stdenv.isDarwin [ AppKit ]; 24 25 meta = with lib; { 26 description = "A cargo extension for working with microcontrollers"; 27 homepage = "https://probe.rs/"; 28 changelog = "https://github.com/probe-rs/probe-rs/blob/v${version}/cargo-flash/CHANGELOG.md"; 29 license = with licenses; [ asl20 /* or */ mit ]; 30 maintainers = with maintainers; [ fooker newam ]; 31 }; 32}