mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-21 19:44:09 +00:00
grpc: format
This commit is contained in:
parent
9cf07919cc
commit
42e7791556
@ -4,8 +4,9 @@
|
|||||||
}:
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
version = "1.39.0"; # N.B: if you change this, change pythonPackages.grpcio-tools to a matching version too
|
|
||||||
pname = "grpc";
|
pname = "grpc";
|
||||||
|
version = "1.39.0"; # N.B: if you change this, change pythonPackages.grpcio-tools to a matching version too
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "grpc";
|
owner = "grpc";
|
||||||
repo = "grpc";
|
repo = "grpc";
|
||||||
@ -13,6 +14,7 @@ stdenv.mkDerivation rec {
|
|||||||
sha256 = "1wa7n7mf20fnvxqw093kr7a4c7vilcmx9yl3hicnyfcd663jgqvd";
|
sha256 = "1wa7n7mf20fnvxqw093kr7a4c7vilcmx9yl3hicnyfcd663jgqvd";
|
||||||
fetchSubmodules = true;
|
fetchSubmodules = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
patches = [
|
patches = [
|
||||||
# Fix build on armv6l (https://github.com/grpc/grpc/pull/21341)
|
# Fix build on armv6l (https://github.com/grpc/grpc/pull/21341)
|
||||||
(fetchpatch {
|
(fetchpatch {
|
||||||
@ -27,19 +29,19 @@ stdenv.mkDerivation rec {
|
|||||||
buildInputs = [ c-ares.cmake-config openssl protobuf ]
|
buildInputs = [ c-ares.cmake-config openssl protobuf ]
|
||||||
++ lib.optionals stdenv.isLinux [ libnsl ];
|
++ lib.optionals stdenv.isLinux [ libnsl ];
|
||||||
|
|
||||||
cmakeFlags =
|
cmakeFlags = [
|
||||||
[ "-DgRPC_ZLIB_PROVIDER=package"
|
"-DgRPC_ZLIB_PROVIDER=package"
|
||||||
"-DgRPC_CARES_PROVIDER=package"
|
"-DgRPC_CARES_PROVIDER=package"
|
||||||
"-DgRPC_RE2_PROVIDER=package"
|
"-DgRPC_RE2_PROVIDER=package"
|
||||||
"-DgRPC_SSL_PROVIDER=package"
|
"-DgRPC_SSL_PROVIDER=package"
|
||||||
"-DgRPC_PROTOBUF_PROVIDER=package"
|
"-DgRPC_PROTOBUF_PROVIDER=package"
|
||||||
"-DgRPC_ABSL_PROVIDER=package"
|
"-DgRPC_ABSL_PROVIDER=package"
|
||||||
"-DBUILD_SHARED_LIBS=ON"
|
"-DBUILD_SHARED_LIBS=ON"
|
||||||
"-DCMAKE_SKIP_BUILD_RPATH=OFF"
|
"-DCMAKE_SKIP_BUILD_RPATH=OFF"
|
||||||
"-DCMAKE_CXX_STANDARD=17"
|
"-DCMAKE_CXX_STANDARD=17"
|
||||||
] ++ lib.optionals (stdenv.hostPlatform != stdenv.buildPlatform) [
|
] ++ lib.optionals (stdenv.hostPlatform != stdenv.buildPlatform) [
|
||||||
"-D_gRPC_PROTOBUF_PROTOC_EXECUTABLE=${buildPackages.protobuf}/bin/protoc"
|
"-D_gRPC_PROTOBUF_PROTOC_EXECUTABLE=${buildPackages.protobuf}/bin/protoc"
|
||||||
];
|
];
|
||||||
|
|
||||||
# CMake creates a build directory by default, this conflicts with the
|
# CMake creates a build directory by default, this conflicts with the
|
||||||
# basel BUILD file on case-insensitive filesystems.
|
# basel BUILD file on case-insensitive filesystems.
|
||||||
@ -58,7 +60,7 @@ stdenv.mkDerivation rec {
|
|||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "The C based gRPC (C++, Python, Ruby, Objective-C, PHP, C#)";
|
description = "The C based gRPC (C++, Python, Ruby, Objective-C, PHP, C#)";
|
||||||
license = licenses.asl20;
|
license = licenses.asl20;
|
||||||
maintainers = [ maintainers.lnl7 maintainers.marsam ];
|
maintainers = with maintainers; [ lnl7 marsam ];
|
||||||
homepage = "https://grpc.io/";
|
homepage = "https://grpc.io/";
|
||||||
platforms = platforms.all;
|
platforms = platforms.all;
|
||||||
changelog = "https://github.com/grpc/grpc/releases/tag/v${version}";
|
changelog = "https://github.com/grpc/grpc/releases/tag/v${version}";
|
||||||
|
Loading…
Reference in New Issue
Block a user