woff2: fix build with CMake 4

This commit is contained in:
Emily
2025-09-19 16:29:10 +01:00
parent 497d8576cf
commit d65ad56f1b
+8
View File
@@ -44,6 +44,14 @@ stdenv.mkDerivation rec {
postPatch = ''
# without this binaries only get built if shared libs are disable
sed 's@^if (NOT BUILD_SHARED_LIBS)$@if (TRUE)@g' -i CMakeLists.txt
# Fix the build with CMake 4.
#
# See: <https://github.com/google/woff2/issues/183>
substituteInPlace CMakeLists.txt \
--replace-fail \
'cmake_minimum_required(VERSION 2.8.6)' \
'cmake_minimum_required(VERSION 3.10)'
'';
meta = with lib; {