From 7efb824dac868bb23a1529ca83e12c9ca15403af Mon Sep 17 00:00:00 2001 From: Nick Cao Date: Mon, 18 Sep 2023 09:49:57 -0400 Subject: [PATCH] qt6.qtgrpc: add patch for protobuf 23 support --- pkgs/development/libraries/qt-6/default.nix | 11 ++++++++++- pkgs/development/libraries/qt-6/modules/qtgrpc.nix | 2 ++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/pkgs/development/libraries/qt-6/default.nix b/pkgs/development/libraries/qt-6/default.nix index d0c298e51926..0dd6cd75df08 100644 --- a/pkgs/development/libraries/qt-6/default.nix +++ b/pkgs/development/libraries/qt-6/default.nix @@ -3,6 +3,7 @@ , stdenv , fetchurl , fetchpatch +, fetchpatch2 , makeSetupHook , makeWrapper , gst_all_1 @@ -104,7 +105,15 @@ let qtdatavis3d = callPackage ./modules/qtdatavis3d.nix { }; qtdeclarative = callPackage ./modules/qtdeclarative.nix { }; qtdoc = callPackage ./modules/qtdoc.nix { }; - qtgrpc = callPackage ./modules/qtgrpc.nix { }; + qtgrpc = callPackage ./modules/qtgrpc.nix { + patches = [ + (fetchpatch2 { + # fix compatibility with protobuf 23 + url = "https://gitlab.archlinux.org/archlinux/packaging/packages/qt6-grpc/-/raw/d6b33bd915dc6e63b30db2cd29150d55b289d7ed/protobuf-23.patch"; + hash = "sha256-KQAcrjQ3rK9pDQUOUK6AS4ej8YvtRv9WZOxby31Y5r4="; + }) + ]; + }; qthttpserver = callPackage ./modules/qthttpserver.nix { }; qtimageformats = callPackage ./modules/qtimageformats.nix { }; qtlanguageserver = callPackage ./modules/qtlanguageserver.nix { }; diff --git a/pkgs/development/libraries/qt-6/modules/qtgrpc.nix b/pkgs/development/libraries/qt-6/modules/qtgrpc.nix index f2623dd3d566..877dd2371c27 100644 --- a/pkgs/development/libraries/qt-6/modules/qtgrpc.nix +++ b/pkgs/development/libraries/qt-6/modules/qtgrpc.nix @@ -3,10 +3,12 @@ , qtdeclarative , protobuf , grpc +, patches ? [] }: qtModule { pname = "qtgrpc"; qtInputs = [ qtbase qtdeclarative ]; buildInputs = [ protobuf grpc ]; + inherit patches; }