qhull: fix build with CMake 4
This commit is contained in:
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user