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 = {