feat(3p/cpp/googleapis): Add Nix build instructions

This commit is contained in:
Vincent Ambo 2020-02-26 15:06:37 +00:00
parent 7166b3dd23
commit 366526eab1

24
third_party/cpp/googleapis/default.nix vendored Normal file
View file

@ -0,0 +1,24 @@
# This library contains generated gRPC implementations for Google's
# public libraries.
{ pkgs, ... }:
let
inherit (pkgs) fetchFromGitHub;
stdenv = with pkgs; overrideCC pkgs.stdenv clang_9;
in stdenv.mkDerivation {
name = "googleapis-cpp";
src = ./.;
GOOGLEAPIS_DIR = fetchFromGitHub {
owner = "googleapis";
repo = "googleapis";
rev = "0aba1900ffef672ec5f0da677cf590ee5686e13b";
sha256 = "1174mvipmzap4h8as1cl44y1kq7ikipdicnmnswv5yswgkwla84c";
};
buildInputs = with pkgs; [
c-ares c-ares.cmake-config grpc protobuf openssl zlib
];
nativeBuildInputs = with pkgs; [ cmake pkgconfig ];
}