duckx: fix build with cmake4

This commit is contained in:
Rafael Ieda
2025-10-19 08:48:01 -03:00
parent 6b4cb91291
commit 8a44a27428
+7
View File
@@ -27,6 +27,13 @@ stdenv.mkDerivation (finalAttrs: {
(lib.cmakeFeature "CMAKE_CXX_STANDARD" "14")
];
postPatch = ''
substituteInPlace CMakeLists.txt \
--replace-fail "cmake_minimum_required(VERSION 3.0)" "cmake_minimum_required(VERSION 3.10)"
# CMake 3.0 is deprecated and is no longer supported by CMake > 4
# https://github.com/NixOS/nixpkgs/issues/445447
'';
passthru = {
updateScript = gitUpdater { rev-prefix = "v"; };
};