duckx: fix build with cmake4 (#453510)

This commit is contained in:
Vladimír Čunát
2025-10-27 09:14:35 +00:00
committed by GitHub
+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"; };
};