Unverified Commit 7bfcb950 authored by Yohann Boniface's avatar Yohann Boniface Committed by GitHub
Browse files

nsync: fix build with cmake4 (#453437)

parents a2bf0a75 cb7cf9d1
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -16,6 +16,14 @@ stdenv.mkDerivation rec {
    hash = "sha256-RAwrS8Vz5fZwZRvF4OQfn8Ls11S8OIV2TmJpNrBE4MI=";
  };

  postPatch = ''
    # CMake 3.0 is deprecated and is no longer supported by CMake > 4
    # inline of https://github.com/google/nsync/pull/27
    substituteInPlace CMakeLists.txt \
     --replace-fail "cmake_minimum_required (VERSION 2.8.12)" \
       "cmake_minimum_required (VERSION 3.10)"
  '';

  nativeBuildInputs = [ cmake ];

  # Needed for case-insensitive filesystems like on macOS