2021-10-07 14:54:37 +02:00
|
|
|
{ lib, rustPlatform, fetchCrate, stdenv, libiconv }:
|
2019-01-05 21:01:29 +01:00
|
|
|
|
2021-10-07 14:54:37 +02:00
|
|
|
rustPlatform.buildRustPackage rec {
|
2019-08-31 13:41:23 +02:00
|
|
|
pname = "svd2rust";
|
2021-09-19 21:13:06 +02:00
|
|
|
version = "0.19.0";
|
2019-01-05 21:01:29 +01:00
|
|
|
|
2021-10-07 14:54:37 +02:00
|
|
|
src = fetchCrate {
|
|
|
|
inherit pname version;
|
|
|
|
sha256 = "sha256-LNJd88Gw8HaE1qnRbD7mipVEFgG7jCsyUu9pbwY/4JY=";
|
2019-01-05 21:01:29 +01:00
|
|
|
};
|
|
|
|
|
2021-10-07 14:54:37 +02:00
|
|
|
cargoSha256 = "sha256-Qg/wA3R98FAb8UZ5s7GOEgOeifrqwFJ4lg0BC2SZOE8=";
|
2019-01-05 21:01:29 +01:00
|
|
|
|
2021-05-18 20:01:24 +02:00
|
|
|
buildInputs = lib.optional stdenv.isDarwin libiconv;
|
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2019-01-05 21:01:29 +01:00
|
|
|
description = "Generate Rust register maps (`struct`s) from SVD files";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://github.com/rust-embedded/svd2rust";
|
2021-10-07 14:54:37 +02:00
|
|
|
changelog = "https://github.com/rust-embedded/svd2rust/blob/v${version}/CHANGELOG.md";
|
2019-01-05 21:01:29 +01:00
|
|
|
license = with licenses; [ mit asl20 ];
|
2021-10-07 14:54:37 +02:00
|
|
|
maintainers = with maintainers; [ ];
|
2019-01-05 21:01:29 +01:00
|
|
|
};
|
|
|
|
}
|