about summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authorVladyslav M <dywedir@pm.me>2018-10-27 23:15:22 +0300
committerGitHub <noreply@github.com>2018-10-27 23:15:22 +0300
commit59cd6234d48d66041d1a0a12266810f2692d0071 (patch)
treec0945d6983a0cb288243be9a8dbc312496e81ed9 /pkgs
parentf0868b8425ac22564b7978680a78d13c0829cb69 (diff)
parentf4927a34e764be81fbf76ec54f5d656f3c64dff1 (diff)
downloadnixlib-59cd6234d48d66041d1a0a12266810f2692d0071.tar
nixlib-59cd6234d48d66041d1a0a12266810f2692d0071.tar.gz
nixlib-59cd6234d48d66041d1a0a12266810f2692d0071.tar.bz2
nixlib-59cd6234d48d66041d1a0a12266810f2692d0071.tar.lz
nixlib-59cd6234d48d66041d1a0a12266810f2692d0071.tar.xz
nixlib-59cd6234d48d66041d1a0a12266810f2692d0071.tar.zst
nixlib-59cd6234d48d66041d1a0a12266810f2692d0071.zip
Merge pull request #49295 from LnL7/darwin-rust-cbindgen
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;
   };