From 430e60233685b1da5ace0bca88db3e7a8f5ed1b2 Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Sun, 7 Jun 2020 17:14:48 +0100 Subject: feat(3p/grpc): Build gRPC using LLVM10 & libcxx --- third_party/default.nix | 3 +-- third_party/grpc/default.nix | 14 ++++++++++++++ 2 files changed, 15 insertions(+), 2 deletions(-) create mode 100644 third_party/grpc/default.nix (limited to 'third_party') diff --git a/third_party/default.nix b/third_party/default.nix index 2286af193db3..b81c6a102f77 100644 --- a/third_party/default.nix +++ b/third_party/default.nix @@ -65,7 +65,6 @@ let go google-cloud-sdk graphviz - grpc gzip haskell iana-etc @@ -163,7 +162,7 @@ in exposed.lib.fix(self: exposed // { # Packages to be overridden originals = { - inherit (nixpkgs) notmuch; + inherit (nixpkgs) grpc notmuch; inherit (stableNixpkgs) git; ffmpeg = nixpkgs.ffmpeg-full; }; diff --git a/third_party/grpc/default.nix b/third_party/grpc/default.nix new file mode 100644 index 000000000000..f76467dbd651 --- /dev/null +++ b/third_party/grpc/default.nix @@ -0,0 +1,14 @@ +{ pkgs, ... }: + +(pkgs.originals.grpc.override { + protobuf = pkgs.protobuf; + stdenv = pkgs.llvmPackages.libcxxStdenv; +}).overrideAttrs(orig: { + buildInputs = orig.buildInputs ++ [ + pkgs.abseil_cpp + ]; + + cmakeFlags = orig.cmakeFlags ++ [ + "-DgRPC_ABSL_PROVIDER=package" + ]; +}) -- cgit 1.4.1