Commit 7aa148c4 authored by Sergei Trofimovich's avatar Sergei Trofimovich
Browse files

CuboCore.libcprime: fix against cmake-4

Without the change the build fails as https://hydra.nixos.org/build/309809196:

  CMake Error at CMakeLists.txt:2 (cmake_minimum_required):
    Compatibility with CMake < 3.5 has been removed from CMake.
parent e18d8ec6
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -2,6 +2,7 @@
  lib,
  stdenv,
  fetchFromGitLab,
  fetchpatch,
  libnotify,
  cmake,
  ninja,
@@ -21,6 +22,13 @@ stdenv.mkDerivation (finalAttrs: {

  patches = [
    ./0001-fix-application-dirs.patch

    # cmake-4 support
    (fetchpatch {
      name = "cmake-4.patch";
      url = "https://gitlab.com/cubocore/libcprime/-/commit/505931e9634d1b55ea97bdaa0f68dcd51faaea39.patch";
      hash = "sha256-toWG78tW6qOETTMb63/WtSyIiGkJ00RlPyGTqrWPnLY=";
    })
  ];

  nativeBuildInputs = [