nixpkgs/pkgs/servers/sql
Luke Worth 330fff02a6 postgis: allow on Darwin
To get PostGIS going on Darwin:
1. Add libiconv, as is often required.
2. Expand platforms to `platforms.all`.
3. Deal with PostGIS' quirky build system.

PostGIS' configure.ac has the following gem:

  AC_MSG_RESULT([------------------------------------------------------------------------])
  AC_MSG_RESULT([  WARNING: You have set the --prefix to '$prefix'. But we mostly    ])
  AC_MSG_RESULT([  ignore the --prefix. For your info, using the values determined from ])
  AC_MSG_RESULT([  $PG_CONFIG we will be installing:   ])
  AC_MSG_RESULT([    * postgis shared library in $PGSQL_LIBDIR ])
  AC_MSG_RESULT([    * postgis SQL files in $PGSQL_SHAREDIR/contrib/postgis-$POSTGIS_MAJOR_VERSION.$POSTGIS_MINOR_VERSION ])
  AC_MSG_RESULT([    * postgis executables in $PGSQL_BINDIR ])
  AC_MSG_RESULT([------------------------------------------------------------------------])

This is suggestive of some assumptions in the build system, which are
revealed when building in Nix on Darwin: the build fails because the
postgres binary cannot be found in the install prefix specified for
postgis; vis.

  cc x -bundle_loader $POSTGIS_PREFIX/bin/postgres

This bundle_loader parameter is only available on Darwin, and this
problem doesn't appear to affect Linux systems.

The solution presented here is to symlink the postgres binary where
PostGIS expects it to be, and then remove it after the build completes.
2019-07-27 19:00:46 +10:00
..
cockroachdb cockroachdb: 1.19.0 -> 1.19.1 2019-06-03 13:07:52 +02:00
mariadb mariadb: fix clang and darwin build 2019-06-07 00:29:40 +09:00
monetdb monetdb: 11.31.13 -> 11.33.3 2019-05-02 15:21:36 +02:00
mssql/jdbc squirrel-sql: Add MSSQL driver. (#55626) 2019-05-04 20:22:14 -04:00
mysql mysql55: remove package 2019-06-25 17:26:48 -04:00
oracle-xe treewide: remove platform assertions 2018-05-03 13:09:20 -05:00
percona percona-server56: 5.6.35-80.0 -> 5.6.43-84.3 2019-01-31 20:37:57 +09:00
pgbouncer pgbouncer: 1.9.0 -> 1.10.0 (#64869) 2019-07-16 21:04:15 +03:00
pgpool treewide: remove wkennington as maintainer 2019-01-26 10:05:32 +00:00
postgresql postgis: allow on Darwin 2019-07-27 19:00:46 +10:00
sqlite/jdbc sqlite-jdbc: 3.20.0 -> 3.25.2 2018-10-15 20:45:50 +02:00
virtuoso virtuoso-opensource: add license 2018-11-15 00:13:52 +01:00