diff options
author | Daiderd Jordan <daiderd@gmail.com> | 2018-10-27 18:21:15 +0100 |
---|---|---|
committer | Daiderd Jordan <daiderd@gmail.com> | 2018-10-27 18:21:15 +0100 |
commit | f4927a34e764be81fbf76ec54f5d656f3c64dff1 (patch) | |
tree | e2f4c7e574851e3d578bcf4a425e2ea23157eba7 /pkgs/development/tools/rust/cbindgen | |
parent | 744573f1c6dc0b25491e6a1a0c8f3e1e4af6ede8 (diff) | |
download | nixpkgs-f4927a34e764be81fbf76ec54f5d656f3c64dff1.tar nixpkgs-f4927a34e764be81fbf76ec54f5d656f3c64dff1.tar.gz nixpkgs-f4927a34e764be81fbf76ec54f5d656f3c64dff1.tar.bz2 nixpkgs-f4927a34e764be81fbf76ec54f5d656f3c64dff1.tar.lz nixpkgs-f4927a34e764be81fbf76ec54f5d656f3c64dff1.tar.xz nixpkgs-f4927a34e764be81fbf76ec54f5d656f3c64dff1.tar.zst nixpkgs-f4927a34e764be81fbf76ec54f5d656f3c64dff1.zip |
rust-cbindgen: fix darwin build
Diffstat (limited to 'pkgs/development/tools/rust/cbindgen')
-rw-r--r-- | pkgs/development/tools/rust/cbindgen/default.nix | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/pkgs/development/tools/rust/cbindgen/default.nix b/pkgs/development/tools/rust/cbindgen/default.nix index fe80d0d9dd1..970ace229e2 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; |