zeal-qt6: fix build with qt 6.5

This commit is contained in:
Nick Cao
2023-04-16 22:17:29 +08:00
parent e15575e3ad
commit 6e8561539e
+3
View File
@@ -37,6 +37,9 @@ stdenv.mkDerivation rec {
postPatch = ''
sed -i CMakeLists.txt \
-e 's@^project.*@project(Zeal VERSION ${version})@'
'' + lib.optionalString (!isQt5) ''
substituteInPlace src/app/CMakeLists.txt \
--replace "COMPONENTS Widgets" "COMPONENTS Widgets QmlIntegration"
'';
nativeBuildInputs = [ cmake extra-cmake-modules pkg-config wrapQtAppsHook ];