diff options
author | Sirio Balmelli <sirio@b-ad.ch> | 2019-09-16 04:25:59 +0200 |
---|---|---|
committer | Mario Rodas <marsam@users.noreply.github.com> | 2019-09-15 21:25:59 -0500 |
commit | a3757e6409113d511abd7100f60a242d01a450c7 (patch) | |
tree | 777da9e1b7eb124d337366b5426b72cf582c6ba1 /pkgs | |
parent | 9eec0a3b1ee5ee89b13ead3acfa6844c1d952d31 (diff) |
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>
Diffstat (limited to 'pkgs')
-rw-r--r-- | pkgs/development/tools/rust/racerd/default.nix | 5 | ||||
-rw-r--r-- | pkgs/top-level/all-packages.nix | 4 |
2 files changed, 6 insertions, 3 deletions
diff --git a/pkgs/development/tools/rust/racerd/default.nix b/pkgs/development/tools/rust/racerd/default.nix index bfc30193eeda..fab0dc05c450 100644 --- a/pkgs/development/tools/rust/racerd/default.nix +++ b/pkgs/development/tools/rust/racerd/default.nix @@ -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; diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index c334a7e75b47..27d08101a0c7 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -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; |