Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at litex 30 lines 697 B view raw
1{ lib 2, rustPlatform 3, fetchCrate 4, pkg-config 5, udev 6}: 7 8rustPlatform.buildRustPackage rec { 9 pname = "ravedude"; 10 version = "0.1.5"; 11 12 src = fetchCrate { 13 inherit pname version; 14 hash = "sha256-wcY9fvfIn1pWMAh5FI/QFl18CV2xjmRGSwwoRfGvujo="; 15 }; 16 17 cargoHash = "sha256-AOIrB0FRagbA2+JEURF41d+th0AbR++U5WKCcZmh4Os="; 18 19 nativeBuildInputs = [ pkg-config ]; 20 21 buildInputs = [ udev ]; 22 23 meta = with lib; { 24 description = "Tool to easily flash code onto an AVR microcontroller with avrdude"; 25 homepage = "https://crates.io/crates/ravedude"; 26 license = with licenses; [ mit /* or */ asl20 ]; 27 platforms = platforms.linux; 28 maintainers = with maintainers; [ rvarago ]; 29 }; 30}