diff --git a/pkgs/applications/editors/vim/plugins/overrides.nix b/pkgs/applications/editors/vim/plugins/overrides.nix index efdf0ffb58b7..1f2576aac937 100644 --- a/pkgs/applications/editors/vim/plugins/overrides.nix +++ b/pkgs/applications/editors/vim/plugins/overrides.nix @@ -898,7 +898,15 @@ assertNoAdditions { ''; }; - cpsm = super.cpsm.overrideAttrs { + cpsm = super.cpsm.overrideAttrs (old: { + # CMake 4 dropped support of versions lower than 3.5, and versions + # lower than 3.10 are deprecated. + postPatch = (old.postPatch or "") + '' + substituteInPlace CMakeLists.txt \ + --replace-fail \ + "cmake_minimum_required(VERSION 2.8.12)" \ + "cmake_minimum_required(VERSION 3.10)" + ''; nativeBuildInputs = [ cmake ]; buildInputs = [ python3 @@ -907,11 +915,15 @@ assertNoAdditions { ncurses ]; buildPhase = '' + runHook preBuild + patchShebangs . export PY3=ON ./install.sh + + runHook postBuild ''; - }; + }); crates-nvim = super.crates-nvim.overrideAttrs { checkInputs = [