fix(nix): pin cgal to 6.0.2 to unbreak sfcgal/postgis - #2332
Draft
brainrake wants to merge 2 commits into
Draft
Conversation
nixpkgs' cgal bump to 6.1 removed CGAL::Polygon_mesh_processing::surface_intersection, which sfcgal 2.2.0 (still the packaged version) depends on, breaking postgis builds.
PostgreSQL Extension Dependency Analysis: PR #2332
SummaryNo extensions had dependencies with MAJOR version updates. Full Analysis ResultsPostgreSQL 15 Extension DependenciesPostgreSQL 17 Extension DependenciesOrioleDB 17 Extension Dependencies |
PostgreSQL Package Dependency Analysis: PR #2332
SummaryNo packages had MAJOR version updates. Full Analysis ResultsPostgreSQL 15 Dependency ChangesExtracting PostgreSQL 15 dependencies...
Runtime Closure Size
Raw Dependency ClosurePostgreSQL 17 Dependency ChangesExtracting PostgreSQL 17 dependencies...
Runtime Closure Size
Raw Dependency Closure |
imor
approved these changes
Jul 31, 2026
This was referenced Aug 1, 2026
brainrake
marked this pull request as draft
August 1, 2026 23:58
Collaborator
Author
|
test-ami-nix (15) fails with out of space error - tracked separately in PSQL-1570, unrelated to this fix. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
CGAL::Polygon_mesh_processing::surface_intersection. nixpkgs'sfcgalis still pinned to 2.2.0, which uses that symbol, sosfcgalfails to build and cascades intopostgis.sfcgalto it yet.cgalback to 6.0.2 (last version sfcgal 2.2.0 builds against) until nixpkgs bumpssfcgal.cgalalready resolves to 6.0.2, so this override produces the exact same.drvas unpatched nixpkgs there (verified) — a true no-op today, and it just keeps working once chore: update flake.lock (monthly) #2328's nixpkgs bump lands.Test plan
cgalderivation produces an identical.drvpath to unpatched nixpkgs (no-op)pkgs.cgal.versionresolves to6.0.2through the flake's actualoverlays.default, andpkgs.sfcgalbuilds successfully through that same overlay path