at 23.05-pre 21 lines 657 B view raw
1{ lib, rustPlatform, fetchCrate }: 2 3rustPlatform.buildRustPackage rec { 4 pname = "svd2rust"; 5 version = "0.27.2"; 6 7 src = fetchCrate { 8 inherit pname version; 9 sha256 = "sha256-6HcJ9NPUPcVLZT8zpYxIPJ4UkqwaqPNWva8/wnaUrt8="; 10 }; 11 12 cargoSha256 = "sha256-fsLRpRvdiZyOsxnfAc5xt63rLW5lwwQt+lxmZT7XIAc="; 13 14 meta = with lib; { 15 description = "Generate Rust register maps (`struct`s) from SVD files"; 16 homepage = "https://github.com/rust-embedded/svd2rust"; 17 changelog = "https://github.com/rust-embedded/svd2rust/blob/v${version}/CHANGELOG.md"; 18 license = with licenses; [ mit asl20 ]; 19 maintainers = with maintainers; [ newam ]; 20 }; 21}