nixpkgs/pkgs/development/tools/rust/svd2rust/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

27 lines
755 B
Nix
Raw Normal View History

2022-10-07 19:35:34 +00:00
{ lib, rustPlatform, fetchCrate }:
2019-01-05 20:01:29 +00:00
rustPlatform.buildRustPackage rec {
2019-08-31 11:41:23 +00:00
pname = "svd2rust";
2023-10-23 13:58:22 +00:00
version = "0.30.2";
2019-01-05 20:01:29 +00:00
src = fetchCrate {
inherit pname version;
2023-10-23 13:58:22 +00:00
hash = "sha256-nZ9c4Rog7dvlsnu4y33Yp+PJzwvBKvwyxF4V5UeJCVE=";
2019-01-05 20:01:29 +00:00
};
2023-10-23 13:58:22 +00:00
cargoHash = "sha256-wVv46yYlKsyxk+2eXwsd0jMC64Xk5+Krp18B2pKo0mo=";
2023-08-22 04:39:47 +00:00
# error: linker `aarch64-linux-gnu-gcc` not found
postPatch = ''
rm .cargo/config.toml
'';
2021-05-18 18:01:24 +00:00
meta = with lib; {
2019-01-05 20:01:29 +00:00
description = "Generate Rust register maps (`struct`s) from SVD files";
homepage = "https://github.com/rust-embedded/svd2rust";
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
};
}