git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #123559 from stephank/fix-svd2rust-darwin

svd2rust: fix darwin build

commitde88b4b677d283ec8e9a51cc2e86be5d51b545c8 authorJörg Thalheim <Mic92@users.noreply.github.com> dateTue 18 May 2021, 21:02 (6 years ago) parent0f03634a30a3e3
1 file changed+3−1
pkgs/development/tools/rust/svd2rust/default.nix+3−1
pkgs/development/tools/rust/svd2rust/default.nix+3−1
@@ -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";