From 0025f16b55517297f11b2c7ddb4c5ed42ba2646d Mon Sep 17 00:00:00 2001 From: Sigmanificient Date: Wed, 31 Dec 2025 19:54:40 +0100 Subject: [PATCH] jwm-settings-manager: fix build with cmake4 --- .../window-managers/jwm/jwm-settings-manager.nix | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/pkgs/applications/window-managers/jwm/jwm-settings-manager.nix b/pkgs/applications/window-managers/jwm/jwm-settings-manager.nix index 8b53f1711cfc..b240cfc8e9ef 100644 --- a/pkgs/applications/window-managers/jwm/jwm-settings-manager.nix +++ b/pkgs/applications/window-managers/jwm/jwm-settings-manager.nix @@ -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 = {