cargo-inspect: fix build on Darwin

package fails to build with 'ld: framework not found Security'
Solve by adding darwin.apple_sdk.frameworks.Security on Darwin.

Signed-off-by: Sirio Balmelli <sirio@b-ad.ch>
This commit is contained in:
Sirio Balmelli
2019-09-17 16:46:05 +02:00
parent e598c4001f
commit 7cb3992c6c
2 changed files with 6 additions and 2 deletions

View File

@@ -1,4 +1,4 @@
{ lib, rustPlatform, fetchFromGitHub }:
{ stdenv, lib, rustPlatform, fetchFromGitHub, Security }:
rustPlatform.buildRustPackage rec {
pname = "cargo-inspect";
@@ -11,6 +11,8 @@ rustPlatform.buildRustPackage rec {
sha256 = "0rjy8jlar939fkl7wi8a6zxsrl4axz2nrhv745ny8x38ii4sfbzr";
};
buildInputs = stdenv.lib.optionals stdenv.isDarwin [ Security ];
cargoSha256 = "1pxvcf991w0jfxdissvwal5slrx7vpk3rqkzwk4hxfv0mjiqxsg5";
meta = with lib; {