libbtbb: fix build issue related to cmake 4

This commit is contained in:
Andrew Zah
2025-10-21 10:44:07 +09:00
parent b43c43d642
commit e9268628ed
+5 -1
View File
@@ -18,8 +18,12 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ cmake ];
# https://github.com/greatscottgadgets/libbtbb/issues/63
postPatch = ''
# https://github.com/NixOS/nixpkgs/issues/445447
substituteInPlace CMakeLists.txt \
--replace-fail "cmake_minimum_required(VERSION 2.8)" "cmake_minimum_required(VERSION 3.10)"
# https://github.com/greatscottgadgets/libbtbb/issues/63
substituteInPlace lib/libbtbb.pc.in \
--replace '$'{prefix}/@CMAKE_INSTALL_LIBDIR@ @CMAKE_INSTALL_FULL_LIBDIR@ \
--replace '$'{prefix}/@CMAKE_INSTALL_INCLUDEDIR@ @CMAKE_INSTALL_FULL_INCLUDEDIR@