qscreenshot: fix build with cmake4

This commit is contained in:
Rafael Ieda
2025-10-25 09:43:19 -03:00
parent 688e66fd13
commit ec3410f6b7
+6
View File
@@ -27,6 +27,12 @@ stdenv.mkDerivation {
libsForQt5.qtbase
libsForQt5.qtx11extras
];
postPatch = ''
substituteInPlace qScreenshot/{CMakeLists.txt,cmake/modules/version.cmake} \
--replace-fail "cmake_minimum_required( VERSION 3.2.0 )" "cmake_minimum_required(VERSION 3.10)"
'';
meta = with lib; {
description = "Simple creation and editing of screenshots";
mainProgram = "qScreenshot";