blob: 3b7da2a1bcd52b52f3a2c9b1085613b6fc83206c (
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
pkgs: attrs: with pkgs; rec {
version = "1.54.2";
pname = "grpc";
src = fetchFromGitHub {
owner = "grpc";
repo = "grpc";
rev = "v${version}";
hash = "sha256-OIRqH+h8Kjbw3X5slpdCfNN0f027WuvHG3q7KUuSWo8=";
fetchSubmodules = true;
};
patches = [];
buildInputs = [
openssl
protobuf
libnsl
];
cmakeFlags = [
"-DBUILD_SHARED_LIBS=ON"
"-DgRPC_ZLIB_PROVIDER=package"
"-DgRPC_CARES_PROVIDER=package"
"-DgRPC_RE2_PROVIDER=package"
"-DgRPC_SSL_PROVIDER=package"
"-DgRPC_PROTOBUF_PROVIDER=package"
"-DgRPC_ABSL_PROVIDER=package"
# Building gRPC test takes too long.
# We do not need them in Arcadia, hence there is no sense to build them under nix
"-DgRPC_BUILD_TESTS=OFF"
"-DgRPC_BUILD_CSHARP_EXT=OFF"
"-DgRPC_BACKWARDS_COMPATIBILITY_MODE=OFF"
"-DgRPC_BUILD_GRPC_CSHARP_PLUGIN=OFF"
"-DgRPC_BUILD_GRPC_NODE_PLUGIN=OFF"
"-DgRPC_BUILD_GRPC_OBJECTIVE_C_PLUGIN=OFF"
"-DgRPC_BUILD_GRPC_PHP_PLUGIN=OFF"
"-DgRPC_BUILD_GRPC_RUBY_PLUGIN=OFF"
];
}
|