mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-28 22:32:58 +03:00
8dcaa5b313
Add postgis 2.4.0 doesn't remove v2.3.1. There are some big change in 2.4 that people may don't want. see https://postgis.net/docs/release_notes.html#idm41021 fix test call modify following recommandation of lsix
27 lines
654 B
Nix
27 lines
654 B
Nix
import ./make-test.nix ({ pkgs, ...} : {
|
|
name = "postgis";
|
|
meta = with pkgs.stdenv.lib.maintainers; {
|
|
maintainers = [ lsix ];
|
|
};
|
|
|
|
nodes = {
|
|
master =
|
|
{ pkgs, config, ... }:
|
|
|
|
{
|
|
services.postgresql = let mypg = pkgs.postgresql100; in {
|
|
enable = true;
|
|
package = mypg;
|
|
extraPlugins = [ (pkgs.postgis.override { postgresql = mypg; }).v_2_4_0 ];
|
|
};
|
|
};
|
|
};
|
|
|
|
testScript = ''
|
|
startAll;
|
|
$master->waitForUnit("postgresql");
|
|
$master->sleep(10); # Hopefully this is long enough!!
|
|
$master->succeed("sudo -u postgres psql -c 'CREATE EXTENSION postgis;'");
|
|
'';
|
|
})
|