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

24 lines
725 B
Nix
Raw Normal View History

{ lib, rustPlatform, fetchCrate, stdenv, libiconv }:
2019-01-05 21:01:29 +01: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
src = fetchCrate {
inherit pname version;
sha256 = "sha256-LNJd88Gw8HaE1qnRbD7mipVEFgG7jCsyUu9pbwY/4JY=";
2019-01-05 21:01:29 +01: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;
meta = with lib; {
2019-01-05 21:01:29 +01: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 21:01:29 +01:00
license = with licenses; [ mit asl20 ];
maintainers = with maintainers; [ ];
2019-01-05 21:01:29 +01:00
};
}