diff options
author | RĂ©mi Desgrange <rdesgrange@gmail.com> | 2017-10-11 18:06:20 +0200 |
---|---|---|
committer | Remi Desgrange <rdesgrange@gmail.com> | 2017-10-13 09:45:25 +0200 |
commit | 8dcaa5b313165d0acb3860cab97ece62e8421162 (patch) | |
tree | b7cc66043019b3c7516f5e04a304a2bbabea0ca5 /nixos/tests/postgis.nix | |
parent | 659c7484d1dbfb193085586bd8db8dc6260287f1 (diff) |
postgis: add v2.4.0
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
Diffstat (limited to 'nixos/tests/postgis.nix')
-rw-r--r-- | nixos/tests/postgis.nix | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/nixos/tests/postgis.nix b/nixos/tests/postgis.nix index 1dba5c363c09d..f6ce3fe38ed3e 100644 --- a/nixos/tests/postgis.nix +++ b/nixos/tests/postgis.nix @@ -9,15 +9,11 @@ import ./make-test.nix ({ pkgs, ...} : { { pkgs, config, ... }: { - services.postgresql = let mypg = pkgs.postgresql95; in { + services.postgresql = let mypg = pkgs.postgresql100; in { enable = true; package = mypg; - extraPlugins = [ (pkgs.postgis.override { postgresql = mypg; }).v_2_2_1 ]; - initialScript = pkgs.writeText "postgresql-init.sql" - '' - CREATE ROLE postgres WITH superuser login createdb; - ''; - }; + extraPlugins = [ (pkgs.postgis.override { postgresql = mypg; }).v_2_4_0 ]; + }; }; }; |