qhull: fix build with CMake 4

This commit is contained in:
Emily
2025-09-19 16:29:10 +01:00
parent 5bebee097d
commit 34c4f1cc20
+12
View File
@@ -19,6 +19,18 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ cmake ] ++ lib.optional stdenv.hostPlatform.isDarwin fixDarwinDylibNames;
# Fix the build with CMake 4.
#
# Remove on the next version bump.
#
# See: <https://github.com/qhull/qhull/commit/62ccc56af071eaa478bef6ed41fd7a55d3bb2d80>
postPatch = ''
substituteInPlace CMakeLists.txt \
--replace-fail \
'cmake_minimum_required(VERSION 3.0)' \
'cmake_minimum_required(VERSION 3.5...4.0)'
'';
meta = with lib; {
homepage = "http://www.qhull.org/";
description = "Compute the convex hull, Delaunay triangulation, Voronoi diagram and more";