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