Merge pull request #63746 from arcnmx/rust-darwin-expand

cargo-expand: fix darwin build
This commit is contained in:
worldofpeace 2019-06-25 10:58:51 -04:00 committed by GitHub
commit 0d61615d8d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,4 +1,4 @@
{ stdenv, rustPlatform, fetchFromGitHub }:
{ stdenv, rustPlatform, fetchFromGitHub, darwin }:
rustPlatform.buildRustPackage rec {
pname = "cargo-expand";
@ -12,6 +12,7 @@ rustPlatform.buildRustPackage rec {
};
cargoSha256 = "1wvqxj2w02d6zhyw3z5v0w4bfmbmldh63ygmvfxa3ngfb36gcacz";
buildInputs = stdenv.lib.optional stdenv.isDarwin darwin.apple_sdk.frameworks.Security;
meta = with stdenv.lib; {
description = "A utility and Cargo subcommand designed to let people expand macros in their Rust source code";