2016-08-19 09:06:40 +02:00
|
|
|
import ./make-test.nix ({ pkgs, ...} : {
|
|
|
|
name = "postgis";
|
|
|
|
meta = with pkgs.stdenv.lib.maintainers; {
|
|
|
|
maintainers = [ lsix ];
|
|
|
|
};
|
|
|
|
|
|
|
|
nodes = {
|
|
|
|
master =
|
2018-07-20 22:56:59 +02:00
|
|
|
{ pkgs, ... }:
|
2016-08-19 09:06:40 +02:00
|
|
|
|
|
|
|
{
|
2018-10-23 18:22:14 +02:00
|
|
|
services.postgresql = let mypg = pkgs.postgresql_10; in {
|
2016-08-19 09:06:40 +02:00
|
|
|
enable = true;
|
|
|
|
package = mypg;
|
2018-02-20 22:17:16 +01:00
|
|
|
extraPlugins = [ (pkgs.postgis.override { postgresql = mypg; }) ];
|
2017-10-11 18:06:20 +02:00
|
|
|
};
|
2016-08-19 09:06:40 +02:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
testScript = ''
|
|
|
|
startAll;
|
|
|
|
$master->waitForUnit("postgresql");
|
|
|
|
$master->sleep(10); # Hopefully this is long enough!!
|
|
|
|
$master->succeed("sudo -u postgres psql -c 'CREATE EXTENSION postgis;'");
|
|
|
|
'';
|
|
|
|
})
|