From ec3410f6b768c8ec9388cd7c8e1adf222b7279cb Mon Sep 17 00:00:00 2001 From: Rafael Ieda Date: Sat, 25 Oct 2025 09:43:19 -0300 Subject: [PATCH] qscreenshot: fix build with cmake4 --- pkgs/by-name/qs/qscreenshot/package.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pkgs/by-name/qs/qscreenshot/package.nix b/pkgs/by-name/qs/qscreenshot/package.nix index 9c8beae294a3..c6356a75b665 100644 --- a/pkgs/by-name/qs/qscreenshot/package.nix +++ b/pkgs/by-name/qs/qscreenshot/package.nix @@ -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";