Unverified Commit 36576a1e authored by Bjørn Forsman's avatar Bjørn Forsman Committed by GitHub
Browse files

qscreenshot: fix build with cmake4 (#455531)

parents 7362c884 ec3410f6
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";