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

maia-icon-theme: fix build with cmake4

parent b5d4fb5c
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -39,6 +39,13 @@ stdenv.mkDerivation {

  dontWrapQtApps = true;

  postPatch = ''
    substituteInPlace CMakeLists.txt \
      --replace-fail "cmake_minimum_required(VERSION 3.0.0 FATAL_ERROR)" "cmake_minimum_required(VERSION 3.10)"
    substituteInPlace {icons,icons-dark}/CMakeLists.txt \
      --replace-fail "cmake_minimum_required(VERSION 2.8)" "cmake_minimum_required(VERSION 3.10)"
  '';

  postInstall = ''
    for theme in $out/share/icons/*; do
      gtk-update-icon-cache $theme