Merge pull request #276348 from NixOS/postgis-gdal-minimal

postgresqlPackages.postgis: build with minimal gdal version
This commit is contained in:
Ivan Mincik 2024-01-19 10:09:40 +01:00 committed by GitHub
commit 908f931618
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 6 additions and 1 deletions

View File

@ -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;'")
'';
})

View File

@ -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";