3
0
Fork 0
forked from mirrors/nixpkgs

racerd: fix broken build on Darwin (#68861)

* racerd: fix broken build on Darwin

Build on Darwin failing with 'ld: framework not found Security'

Add buildInput darwin.apple_sdk.frameworks.Security
when building on Darwin.

Signed-off-by: Sirio Balmelli <sirio@b-ad.ch>
This commit is contained in:
Sirio Balmelli 2019-09-16 04:25:59 +02:00 committed by Mario Rodas
parent 9eec0a3b1e
commit a3757e6409
2 changed files with 6 additions and 3 deletions

View file

@ -1,4 +1,4 @@
{ stdenv, fetchFromGitHub, rustPlatform, makeWrapper }:
{ stdenv, fetchFromGitHub, rustPlatform, makeWrapper , Security }:
with rustPlatform;
@ -19,7 +19,8 @@ buildRustPackage rec {
cargoSha256 = "15894qr0kpp5kivx0p71zmmfhfh8in0ydkvfirxh2r12x0r2jhdd";
buildInputs = [ makeWrapper ];
buildInputs = [ makeWrapper ]
++ stdenv.lib.optional stdenv.isDarwin Security;
RUST_SRC_PATH = rustPlatform.rustcSrc;

View file

@ -8359,7 +8359,9 @@ in
rustracer = callPackage ../development/tools/rust/racer {
inherit (darwin.apple_sdk.frameworks) Security;
};
rustracerd = callPackage ../development/tools/rust/racerd { };
rustracerd = callPackage ../development/tools/rust/racerd {
inherit (darwin.apple_sdk.frameworks) Security;
};
rust-bindgen = callPackage ../development/tools/rust/bindgen { };
rust-cbindgen = callPackage ../development/tools/rust/cbindgen {
inherit (darwin.apple_sdk.frameworks) Security;