3
0
Fork 0
forked from mirrors/nixpkgs

zeal-qt6: fix build with qt 6.5

This commit is contained in:
Nick Cao 2023-04-15 09:37:09 +08:00
parent e15575e3ad
commit 6e8561539e
No known key found for this signature in database

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 ];