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