cargo-download: add Security build input on darwin

This commit is contained in:
Alyssa Ross 2018-09-04 10:32:05 +01:00
parent 0d3b2b6990
commit 9f3707d83a
No known key found for this signature in database
GPG Key ID: C4844408C0657052

View File

@ -1,5 +1,11 @@
{ lib, buildPlatform, buildRustCrate, fetchgit }:
{ stdenv, lib, fetchgit, darwin, buildPlatform
, buildRustCrate, defaultCrateOverrides }:
((import ./Cargo.nix { inherit lib buildPlatform buildRustCrate fetchgit; }).cargo_download {}).override {
crateOverrides = defaultCrateOverrides // {
cargo-download = attrs: {
buildInputs = lib.optional stdenv.isDarwin
darwin.apple_sdk.frameworks.Security;
};
};
}