jwm-settings-manager: fix build with cmake4 (#475693)

This commit is contained in:
Aleksana
2026-01-01 08:38:19 +00:00
committed by GitHub

View File

@@ -42,14 +42,10 @@ stdenv.mkDerivation rec {
postPatch = ''
substituteInPlace CMakeLists.txt \
--replace 'CMAKE_INSTALL_PREFIX "/usr"' "CMAKE_INSTALL_PREFIX $out"
--replace-fail "cmake_minimum_required(VERSION 2.8)" "cmake_minimum_required(VERSION 3.10)" \
--replace-fail 'CMAKE_INSTALL_PREFIX "/usr"' "CMAKE_INSTALL_PREFIX $out"
substituteInPlace data/CMakeLists.txt \
--replace 'DESTINATION usr/share' "DESTINATION share"
'';
postConfigure = ''
substituteInPlace cmake_install.cmake \
--replace "/var/empty" "/usr"
--replace-fail 'DESTINATION usr/share' "DESTINATION share"
'';
meta = {