resolve sfcgal build in postgres within the nix build
samrose opened this issue · comments
Chore
Once the AMI that uses nix-sourced psql bundle is able to build successfully, I will need to assure that postgis builds with sfcgal before we go into production
This will require bringing in https://github.com/NixOS/nixpkgs/blob/nixpkgs-unstable/pkgs/development/libraries/CGAL/default.nix and patch https://github.com/NixOS/nixpkgs/blob/nixpkgs-unstable/pkgs/development/libraries/CGAL/cgal_path.patch
Then, will require a derivation of sfcgal (none exists in nixpkgs) using the built cgal dep
Finally, this will need to be added as a flag `--with-sfcgal=" at https://github.com/supabase/postgres/blob/develop/nix/ext/postgis.nix#L43
Our tests depend on this feature, and it was not part of the upstream postgis so we'll need this to complete AMI