mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-11-05 17:56:46 +01:00
25bef2d8f9
The library does not depend on stdenv, that `stdenv` exposes `lib` is an artifact of the ancient origins of nixpkgs.
30 lines
721 B
Nix
30 lines
721 B
Nix
import ./make-test-python.nix ({ pkgs, ...} : {
|
|
name = "postgis";
|
|
meta = with pkgs.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 = ''
|
|
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_topology;'")
|
|
'';
|
|
})
|