Merge pull request #123559 from stephank/fix-svd2rust-darwin

svd2rust: fix darwin build
This commit is contained in:
Jörg Thalheim 2021-05-18 21:02:40 +01:00 committed by GitHub
commit de88b4b677
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,4 +1,4 @@
{ lib, fetchFromGitHub, rustPlatform }:
{ lib, stdenv, fetchFromGitHub, rustPlatform, libiconv }:
with rustPlatform;
@ -16,6 +16,8 @@ buildRustPackage rec {
cargoSha256 = "0c0f86x17fzav5q76z3ha3g00rbgyz2lm5a5v28ggy0jmg9xgsv6";
buildInputs = lib.optional stdenv.isDarwin libiconv;
meta = with lib; {
description = "Generate Rust register maps (`struct`s) from SVD files";
homepage = "https://github.com/rust-embedded/svd2rust";