Commit 806d24f4 authored by Sergei Trofimovich's avatar Sergei Trofimovich
Browse files

arc_unpacker: fix `cmake-4` build

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

    CMake Error at CMakeLists.txt:1 (cmake_minimum_required):
      Compatibility with CMake < 3.5 has been removed from CMake.
parent 92661251
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -43,6 +43,11 @@ stdenv.mkDerivation {
    cp ${catch2}/include/catch2/catch.hpp tests/test_support/catch.h
    sed '1i#include <limits>' -i src/dec/eagls/pak_archive_decoder.cc # gcc12
    sed '1i#include <vector>' -i src/flow/cli_facade.h # gcc14

    # cmake-4 support
    substituteInPlace CMakeLists.txt --replace-fail \
      'cmake_minimum_required(VERSION 2.8.8)' \
      'cmake_minimum_required(VERSION 3.10)'
  '';

  nativeBuildInputs = [