I’m attempting to setup my dev env using devenv.sh
but ran into complications when installing PostGIS.
The approaches I’ve found online for NixOS/Nix is to use services.postgresql.extraPlugins = with pkgs.postgresql_14.pkgs; [ postgis ];
. However, devenv.sh
provides services.postgres
which doesn’t have any options for extraPlugins
.
My nix
experience is not deep, is there a way to use PostGIS with Postgres within the context of devenv.sh
? Or does postgres.nix
provided by devenv.sh
require updates?
I tried adding postgresql14Packages.postgis
/ (postgresql_14.withPackages (p: [ p.postgis ] ))
to packages
but even if PostGIS was installed, creating the extension results in:
ERROR: could not open extension control file "/nix/store/gz287zqdmda0vynmbaf9z3z44r4fvz9r-postgresql-14.7/share/postgresql/extension/postgis.control": No such file or directory
Thanks!