nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ lib, rustPlatform, fetchCrate }:
2
3rustPlatform.buildRustPackage rec {
4 pname = "svd2rust";
5 version = "0.28.0";
6
7 src = fetchCrate {
8 inherit pname version;
9 sha256 = "sha256-/Pt0eKS6Rfrh18nb1lR/T+T+b73rmX4jmGIjbXJtcMA=";
10 };
11
12 cargoSha256 = "sha256-Vum7Ltq9h6BMXvIESO9jC2B775BZlCWmatazk1bavQs=";
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}