maia-icon-theme: fix build with cmake4 (#454529)

This commit is contained in:
dish 2025-10-27 14:07:57 +00:00 committed by GitHub
commit 1e4f3334a3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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