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.

24 lines
731 B
Nix
Raw Normal View History

{ lib, rustPlatform, fetchCrate, stdenv, libiconv }:
2019-01-05 20:01:29 +00:00
rustPlatform.buildRustPackage rec {
2019-08-31 11:41:23 +00:00
pname = "svd2rust";
2022-08-22 23:12:12 +00:00
version = "0.25.1";
2019-01-05 20:01:29 +00:00
src = fetchCrate {
inherit pname version;
2022-08-22 23:12:12 +00:00
sha256 = "sha256-mPkcefB9oTLYhtokhUVwoWfsvLtZWWb+LwElmJeZsiA=";
2019-01-05 20:01:29 +00:00
};
2022-08-22 23:12:12 +00:00
cargoSha256 = "sha256-sjjmsrgKfrvXynVsZuYkmGKmh0cTAlSNT4h2fVHATrU=";
2019-01-05 20:01:29 +00:00
2021-05-18 18:01:24 +00:00
buildInputs = lib.optional stdenv.isDarwin libiconv;
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
};
}