mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-17 23:36:17 +01:00
4fb8bc8238
postgis: cleanup Another part of https://github.com/NixOS/nixpkgs/pull/38698, though I did cleanup even more. Moving docs to separate output should save another 30MB. I did pin poppler to 0.61 just to be sure GDAL doesn't break again next time poppler changes internal APIs.
29 lines
728 B
Nix
29 lines
728 B
Nix
import ./make-test.nix ({ pkgs, ...} : {
|
|
name = "postgis";
|
|
meta = with pkgs.stdenv.lib.maintainers; {
|
|
maintainers = [ lsix ];
|
|
};
|
|
|
|
nodes = {
|
|
master =
|
|
{ pkgs, ... }:
|
|
|
|
{
|
|
services.postgresql = let mypg = pkgs.postgresql_11; in {
|
|
enable = true;
|
|
package = mypg;
|
|
extraPlugins = with mypg.pkgs; [
|
|
postgis
|
|
];
|
|
};
|
|
};
|
|
};
|
|
|
|
testScript = ''
|
|
startAll;
|
|
$master->waitForUnit("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_topology;'");
|
|
'';
|
|
})
|