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

cargo-expand: fix darwin build

commit0311ef3f96c4549950b70c4fc5981076052c2d90 authorJörg Thalheim <Mic92@users.noreply.github.com> dateTue 11 May 2021, 09:47 (6 years ago) parent3199808a2f26bf
1 file changed+3−1
pkgs/development/tools/rust/cargo-expand/default.nix+3−1
pkgs/development/tools/rust/cargo-expand/default.nix+3−1
@@ -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";