xfitter: fix cmake error by changing minimum required version in code

This commit is analogous to 4ae54c3624, which did the same change to
`gfal2`.
This commit is contained in:
Jonas Rembser
2025-10-22 18:22:37 +02:00
parent 2d6a109cef
commit 73ebacc1ef

View File

@@ -60,6 +60,12 @@ stdenv.mkDerivation {
] ]
++ lib.optional (stdenv.hostPlatform.libc == "glibc") libtirpc; ++ lib.optional (stdenv.hostPlatform.libc == "glibc") libtirpc;
preConfigure = ''
substituteInPlace "CMakeLists.txt" \
--replace-fail 'cmake_minimum_required(VERSION 2.8.12.2)' \
'cmake_minimum_required(VERSION 3.10)'
'';
env.NIX_CFLAGS_COMPILE = lib.optionalString ( env.NIX_CFLAGS_COMPILE = lib.optionalString (
stdenv.hostPlatform.libc == "glibc" stdenv.hostPlatform.libc == "glibc"
) "-I${libtirpc.dev}/include/tirpc"; ) "-I${libtirpc.dev}/include/tirpc";