@@ -1,4 +1,4 @@
1−{ lib, rustPlatform, fetchFromGitHub }:
1+{ lib, rustPlatform, fetchFromGitHub, stdenv, libiconv }:
22
33rustPlatform.buildRustPackage rec {
44 pname = "cargo-expand";
@@ -13,6 +13,8 @@ rustPlatform.buildRustPackage rec {
1313
1414 cargoSha256 = "sha256-1+A+n5VQS8zJULiR8IWLGo+RnFuVjg6ist8G3eCsXJM=";
1515
16+ buildInputs = lib.optional stdenv.isDarwin libiconv;
17+
1618 meta = with lib; {
1719 description =
1820 "A utility and Cargo subcommand designed to let people expand macros in their Rust source code";