Unverified Commit a132f087 authored by Gaétan Lepage's avatar Gaétan Lepage Committed by GitHub
Browse files

vimPlugins.cpsm: fix CMake 4 compatibility (#451470)

parents c352b13e 62a97e4b
Loading
Loading
Loading
Loading
+14 −2
Original line number Diff line number Diff line
@@ -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 = [