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