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:
@@ -60,6 +60,12 @@ stdenv.mkDerivation {
|
||||
]
|
||||
++ 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 (
|
||||
stdenv.hostPlatform.libc == "glibc"
|
||||
) "-I${libtirpc.dev}/include/tirpc";
|
||||
|
||||
Reference in New Issue
Block a user