nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 34 lines 806 B view raw
1{ 2 lib, 3 rustPlatform, 4 fetchCrate, 5}: 6 7rustPlatform.buildRustPackage rec { 8 pname = "svd2rust"; 9 version = "0.37.1"; 10 11 src = fetchCrate { 12 inherit pname version; 13 hash = "sha256-50g5YVmVYTLYJdaWXk91OYdlghDchkyHXS9j2Z7IXSw="; 14 }; 15 16 cargoHash = "sha256-poP1az7Hv/qPrTUvqHbd7aylJrI9LGBMu88g+pFmXF4="; 17 18 # error: linker `aarch64-linux-gnu-gcc` not found 19 postPatch = '' 20 rm .cargo/config.toml 21 ''; 22 23 meta = { 24 description = "Generate Rust register maps (`struct`s) from SVD files"; 25 mainProgram = "svd2rust"; 26 homepage = "https://github.com/rust-embedded/svd2rust"; 27 changelog = "https://github.com/rust-embedded/svd2rust/blob/v${version}/CHANGELOG.md"; 28 license = with lib.licenses; [ 29 mit 30 asl20 31 ]; 32 maintainers = with lib.maintainers; [ newam ]; 33 }; 34}