0

When installing PostGIS on NixOS with an expression like

  services.postgresql.extraPlugins = [ (pkgs.postgis.override { postgresql = pkgs.postgresql94; }).v_2_1_4 ];

How to add other extensions like Osm2pgsql to it?

frlan
  • 563
  • 5
  • 27

1 Answers1

1

osm2pgsql is not yet packaged in nix, so a first step would be to package it.

As far as I see you use osm2pgsql tool as a command line utility. Adding it to environment.systemPackages should make it available in your $PATH.

Rok Garbas
  • 26
  • 1