diff --git a/pkgs/by-name/wo/woff2/package.nix b/pkgs/by-name/wo/woff2/package.nix index b6d15a53a520..bc9e6ec00e6f 100644 --- a/pkgs/by-name/wo/woff2/package.nix +++ b/pkgs/by-name/wo/woff2/package.nix @@ -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: + substituteInPlace CMakeLists.txt \ + --replace-fail \ + 'cmake_minimum_required(VERSION 2.8.6)' \ + 'cmake_minimum_required(VERSION 3.10)' ''; meta = with lib; {