about summary refs log tree commit diff
path: root/third_party/cpp/googleapis/default.nix
blob: 5fc40ac9f7ade018737e534e1ce82d506b7a6137 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# This library contains generated gRPC implementations for Google's
# public libraries.
{ pkgs, ... }:

let
  inherit (pkgs) fetchFromGitHub;
  stdenv = with pkgs; overrideCC pkgs.stdenv clang_10;
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 ];

  # Builds are failing, that's not good.
  meta.ci = false;
}