23b612e36f
GitOrigin-RevId: ae5c332cbb5827f6b1f02572496b141021de335f
30 lines
777 B
Nix
30 lines
777 B
Nix
import ./make-test-python.nix ({ pkgs, ...} : {
|
|
name = "postgis";
|
|
meta = with pkgs.lib.maintainers; {
|
|
maintainers = [ lsix ];
|
|
};
|
|
|
|
nodes = {
|
|
master =
|
|
{ pkgs, ... }:
|
|
|
|
{
|
|
services.postgresql = {
|
|
enable = true;
|
|
package = pkgs.postgresql;
|
|
extraPlugins = ps: with ps; [
|
|
postgis
|
|
];
|
|
};
|
|
};
|
|
};
|
|
|
|
testScript = ''
|
|
start_all()
|
|
master.wait_for_unit("postgresql")
|
|
master.sleep(10) # Hopefully this is long enough!!
|
|
master.succeed("sudo -u postgres psql -c 'CREATE EXTENSION postgis;'")
|
|
master.succeed("sudo -u postgres psql -c 'CREATE EXTENSION postgis_raster;'")
|
|
master.succeed("sudo -u postgres psql -c 'CREATE EXTENSION postgis_topology;'")
|
|
'';
|
|
})
|