2022-10-21 18:38:19 +00:00
|
|
|
{ lib, rustPlatform, fetchCrate }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-10-08 15:17:17 +00:00
|
|
|
rustPlatform.buildRustPackage rec {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "svd2rust";
|
2024-06-05 15:53:02 +00:00
|
|
|
version = "0.33.3";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-10-08 15:17:17 +00:00
|
|
|
src = fetchCrate {
|
|
|
|
inherit pname version;
|
2024-06-05 15:53:02 +00:00
|
|
|
hash = "sha256-Ed7dwVXjLOAtW9ZOh1g+yamnSzyoKo1lS4N2nyyqaJ8=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
cargoHash = "sha256-BppPMYsv0v7K6z9URYEWrz0SHPx+oe2jeP3EzydFcuI=";
|
2023-08-22 20:05:09 +00:00
|
|
|
|
|
|
|
# error: linker `aarch64-linux-gnu-gcc` not found
|
|
|
|
postPatch = ''
|
|
|
|
rm .cargo/config.toml
|
|
|
|
'';
|
2021-05-20 23:08:51 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Generate Rust register maps (`struct`s) from SVD files";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "svd2rust";
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://github.com/rust-embedded/svd2rust";
|
2021-10-08 15:17:17 +00:00
|
|
|
changelog = "https://github.com/rust-embedded/svd2rust/blob/v${version}/CHANGELOG.md";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = with licenses; [ mit asl20 ];
|
2022-06-16 17:23:12 +00:00
|
|
|
maintainers = with maintainers; [ newam ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|