From 34c4f1cc20f82a938e3d2e8053c178463db71b8d Mon Sep 17 00:00:00 2001 From: Emily Date: Wed, 10 Sep 2025 02:32:16 +0100 Subject: [PATCH] qhull: fix build with CMake 4 --- pkgs/by-name/qh/qhull/package.nix | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/pkgs/by-name/qh/qhull/package.nix b/pkgs/by-name/qh/qhull/package.nix index 84777ff28cdc..a315ea25dec8 100644 --- a/pkgs/by-name/qh/qhull/package.nix +++ b/pkgs/by-name/qh/qhull/package.nix @@ -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: + 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";