Unverified Commit 6d8ab355 authored by dish's avatar dish Committed by GitHub
Browse files

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

parents 7de6bd52 7a49b218
Loading
Loading
Loading
Loading
+8 −3
Original line number Diff line number Diff line
@@ -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