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