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.
This commit is contained in:
Sergei Trofimovich
2025-11-01 06:25:29 +00:00
parent 92661251e0
commit 806d24f4b2

View File

@@ -43,6 +43,11 @@ stdenv.mkDerivation {
cp ${catch2}/include/catch2/catch.hpp tests/test_support/catch.h 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 <limits>' -i src/dec/eagls/pak_archive_decoder.cc # gcc12
sed '1i#include <vector>' -i src/flow/cli_facade.h # gcc14 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 = [ nativeBuildInputs = [