at 23.11-beta 26 lines 755 B view raw
1{ lib, rustPlatform, fetchCrate }: 2 3rustPlatform.buildRustPackage rec { 4 pname = "svd2rust"; 5 version = "0.30.2"; 6 7 src = fetchCrate { 8 inherit pname version; 9 hash = "sha256-nZ9c4Rog7dvlsnu4y33Yp+PJzwvBKvwyxF4V5UeJCVE="; 10 }; 11 12 cargoHash = "sha256-wVv46yYlKsyxk+2eXwsd0jMC64Xk5+Krp18B2pKo0mo="; 13 14 # error: linker `aarch64-linux-gnu-gcc` not found 15 postPatch = '' 16 rm .cargo/config.toml 17 ''; 18 19 meta = with lib; { 20 description = "Generate Rust register maps (`struct`s) from SVD files"; 21 homepage = "https://github.com/rust-embedded/svd2rust"; 22 changelog = "https://github.com/rust-embedded/svd2rust/blob/v${version}/CHANGELOG.md"; 23 license = with licenses; [ mit asl20 ]; 24 maintainers = with maintainers; [ newam ]; 25 }; 26}