summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--nixos/tests/postgis.nix1
-rw-r--r--pkgs/servers/sql/postgresql/ext/postgis.nix6
2 files changed, 6 insertions, 1 deletions
diff --git a/nixos/tests/postgis.nix b/nixos/tests/postgis.nix
index 09c738b938ba..dacf4e576c07 100644
--- a/nixos/tests/postgis.nix
+++ b/nixos/tests/postgis.nix
@@ -24,6 +24,7 @@ import ./make-test-python.nix ({ pkgs, ...} : {
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_raster;'")
master.succeed("sudo -u postgres psql -c 'CREATE EXTENSION postgis_topology;'")
'';
})
diff --git a/pkgs/servers/sql/postgresql/ext/postgis.nix b/pkgs/servers/sql/postgresql/ext/postgis.nix
index fe6319d44f20..65541730d296 100644
--- a/pkgs/servers/sql/postgresql/ext/postgis.nix
+++ b/pkgs/servers/sql/postgresql/ext/postgis.nix
@@ -5,7 +5,7 @@
, postgresql
, geos
, proj
-, gdal
+, gdalMinimal
, json_c
, pkg-config
, file
@@ -14,6 +14,10 @@
, pcre2
, nixosTests
}:
+
+let
+ gdal = gdalMinimal;
+in
stdenv.mkDerivation rec {
pname = "postgis";
version = "3.4.1";