vimPlugins.cpsm: fix CMake 4 compatibility
Tracking: https://github.com/NixOS/nixpkgs/issues/445447
This commit is contained in:
@@ -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 = [
|
||||
|
||||
Reference in New Issue
Block a user