2021-10-07 12:54:37 +00:00
|
|
|
{ lib, rustPlatform, fetchCrate, stdenv, libiconv }:
|
2019-01-05 20:01:29 +00:00
|
|
|
|
2021-10-07 12:54:37 +00:00
|
|
|
rustPlatform.buildRustPackage rec {
|
2019-08-31 11:41:23 +00:00
|
|
|
pname = "svd2rust";
|
2022-05-30 02:19:24 +00:00
|
|
|
version = "0.24.0";
|
2019-01-05 20:01:29 +00:00
|
|
|
|
2021-10-07 12:54:37 +00:00
|
|
|
src = fetchCrate {
|
|
|
|
inherit pname version;
|
2022-05-30 02:19:24 +00:00
|
|
|
sha256 = "sha256-P0s2mrfYA7DUThvje0LH3Pq0Os6UZJrrnjnzAm8UlDQ=";
|
2019-01-05 20:01:29 +00:00
|
|
|
};
|
|
|
|
|
2022-05-30 02:19:24 +00:00
|
|
|
cargoSha256 = "sha256-TDgd8RG97ROeAQJ1uDF2m+yIa8US7zFz+5qrQtFbazE=";
|
2019-01-05 20:01:29 +00:00
|
|
|
|
2021-05-18 18:01:24 +00:00
|
|
|
buildInputs = lib.optional stdenv.isDarwin libiconv;
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2019-01-05 20:01:29 +00:00
|
|
|
description = "Generate Rust register maps (`struct`s) from SVD files";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://github.com/rust-embedded/svd2rust";
|
2021-10-07 12:54:37 +00:00
|
|
|
changelog = "https://github.com/rust-embedded/svd2rust/blob/v${version}/CHANGELOG.md";
|
2019-01-05 20:01:29 +00:00
|
|
|
license = with licenses; [ mit asl20 ];
|
2022-05-30 02:19:24 +00:00
|
|
|
maintainers = with maintainers; [ newam ];
|
2019-01-05 20:01:29 +00:00
|
|
|
};
|
|
|
|
}
|