grpc-tools: fix build for cmake 4, 1.12.4 → 1.13.0 (#449946)

This commit is contained in:
dish
2025-10-09 00:51:05 +00:00
committed by GitHub

View File

@@ -8,13 +8,13 @@
stdenv.mkDerivation rec {
pname = "grpc-tools";
version = "1.12.4";
version = "1.13.0";
src = fetchFromGitHub {
owner = "grpc";
repo = "grpc-node";
tag = "grpc-tools@${version}";
hash = "sha256-708lBIGW5+vvSTrZHl/kc+ck7JKNXElrghIGDrMSyx8=";
tag = "grpc-tool@${version}";
hash = "sha256-bLG7hIKr0maFu/at4Vmf59YMwGAnAEOdPbRlGLasm2k=";
fetchSubmodules = true;
};
@@ -22,6 +22,11 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ cmake ];
cmakeFlags = [
# Fix configure with cmake4 for the vendored protobuf
(lib.cmakeFeature "CMAKE_POLICY_VERSION_MINIMUM" "3.10")
];
installPhase = ''
install -Dm755 -t $out/bin grpc_node_plugin
install -Dm755 -t $out/bin deps/protobuf/protoc