Unverified Commit ec3410f6 authored by Rafael Ieda's avatar Rafael Ieda
Browse files

qscreenshot: fix build with cmake4

parent 688e66fd
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -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";