diff options
| author | Ivan Mincik <ivan.mincik@gmail.com> | 2023-12-23 18:48:49 +0100 |
|---|---|---|
| committer | Ivan Mincik <ivan.mincik@gmail.com> | 2024-01-03 11:38:02 +0100 |
| commit | afc2f0f7bcd067b75e9c849ab978a741f8a9038b (patch) | |
| tree | d914293145bce18246b5eed7979ec7efbe14b12d | |
| parent | gnome.gnome-nibbles: 3.38.3 → 4.0.1 (diff) | |
| download | nixpkgs-origin/postgis-gdal-minimal.tar.gz | |
postgresqlPackages.postgis: build minimal gdal versionorigin/postgis-gdal-minimal
This change is reducing closure size from 1.5G to
544M.
| -rw-r--r-- | nixos/tests/postgis.nix | 1 | ||||
| -rw-r--r-- | pkgs/servers/sql/postgresql/ext/postgis.nix | 6 |
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"; |
