about summary refs log blame commit diff
path: root/third_party/grpc/default.nix
blob: 87ae5d7a32d7a5779a14eb8c987c1b35899ad392 (plain) (tree)
1
2
3
4
5
                     
 

                                        
                                          









                                                                    

                                   

                                      

    
{ depot, pkgs, ... }:

(pkgs.grpc.override {
  protobuf = depot.third_party.protobuf;
  stdenv = pkgs.llvmPackages.libcxxStdenv;
}).overrideAttrs(orig: rec {
  version = "1.30.0";

  src = pkgs.fetchFromGitHub {
    owner = "grpc";
    repo = "grpc";
    rev = "v${version}";
    sha256 = "01w5jdp318i7ncxbkfv75q0mf0rd3qwfr1ycdd3850nv6mprv7n0";
    fetchSubmodules = true;
  };

  cmakeFlags = orig.cmakeFlags ++ [
    "-DCMAKE_CXX_STANDARD=17"
    "-DCMAKE_CXX_STANDARD_REQUIRED=ON"
  ];
})