at 23.11-pre 721 B view raw
1import ./make-test-python.nix ({ pkgs, ...} : { 2 name = "postgis"; 3 meta = with pkgs.lib.maintainers; { 4 maintainers = [ lsix ]; 5 }; 6 7 nodes = { 8 master = 9 { pkgs, ... }: 10 11 { 12 services.postgresql = let mypg = pkgs.postgresql_11; in { 13 enable = true; 14 package = mypg; 15 extraPlugins = with mypg.pkgs; [ 16 postgis 17 ]; 18 }; 19 }; 20 }; 21 22 testScript = '' 23 start_all() 24 master.wait_for_unit("postgresql") 25 master.sleep(10) # Hopefully this is long enough!! 26 master.succeed("sudo -u postgres psql -c 'CREATE EXTENSION postgis;'") 27 master.succeed("sudo -u postgres psql -c 'CREATE EXTENSION postgis_topology;'") 28 ''; 29})