summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authorDaiderd Jordan <daiderd@gmail.com>2018-10-27 18:21:15 +0100
committerDaiderd Jordan <daiderd@gmail.com>2018-10-27 18:21:15 +0100
commitf4927a34e764be81fbf76ec54f5d656f3c64dff1 (patch)
treee2f4c7e574851e3d578bcf4a425e2ea23157eba7 /pkgs
parent744573f1c6dc0b25491e6a1a0c8f3e1e4af6ede8 (diff)
downloadnixlib-f4927a34e764be81fbf76ec54f5d656f3c64dff1.tar
nixlib-f4927a34e764be81fbf76ec54f5d656f3c64dff1.tar.gz
nixlib-f4927a34e764be81fbf76ec54f5d656f3c64dff1.tar.bz2
nixlib-f4927a34e764be81fbf76ec54f5d656f3c64dff1.tar.lz
nixlib-f4927a34e764be81fbf76ec54f5d656f3c64dff1.tar.xz
nixlib-f4927a34e764be81fbf76ec54f5d656f3c64dff1.tar.zst
nixlib-f4927a34e764be81fbf76ec54f5d656f3c64dff1.zip
rust-cbindgen: fix darwin build
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/development/tools/rust/cbindgen/default.nix4
-rw-r--r--pkgs/top-level/all-packages.nix4
2 files changed, 6 insertions, 2 deletions
diff --git a/pkgs/development/tools/rust/cbindgen/default.nix b/pkgs/development/tools/rust/cbindgen/default.nix
index fe80d0d9dd19..970ace229e20 100644
--- a/pkgs/development/tools/rust/cbindgen/default.nix
+++ b/pkgs/development/tools/rust/cbindgen/default.nix
@@ -1,4 +1,4 @@
-{ stdenv, fetchFromGitHub, rustPlatform }:
+{ stdenv, fetchFromGitHub, rustPlatform, Security }:
 
 rustPlatform.buildRustPackage rec {
   name = "rust-cbindgen-${version}";
@@ -13,6 +13,8 @@ rustPlatform.buildRustPackage rec {
 
   cargoSha256 = "1m1chwmfgj74xrmn4gb9yz5kx8c408a1hlqmpcq780kqj0k927i9";
 
+  buildInputs = stdenv.lib.optional stdenv.isDarwin Security;
+
   meta = with stdenv.lib; {
     description = "A project for generating C bindings from Rust code";
     homepage = https://github.com/eqrion/cbindgen;
diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix
index 12665aa1754c..d17b11c0b079 100644
--- a/pkgs/top-level/all-packages.nix
+++ b/pkgs/top-level/all-packages.nix
@@ -7386,7 +7386,9 @@ with pkgs;
   rustracer = callPackage ../development/tools/rust/racer { };
   rustracerd = callPackage ../development/tools/rust/racerd { };
   rust-bindgen = callPackage ../development/tools/rust/bindgen { };
-  rust-cbindgen = callPackage ../development/tools/rust/cbindgen { };
+  rust-cbindgen = callPackage ../development/tools/rust/cbindgen {
+    inherit (darwin.apple_sdk.frameworks) Security;
+  };
   rustup = callPackage ../development/tools/rust/rustup {
     inherit (darwin.apple_sdk.frameworks) Security;
   };