postgresqlPackages.postgis: build minimal gdal version
This change is reducing closure size from 1.5G to 544M.
This commit is contained in:
parent
574ac1e631
commit
afc2f0f7bc
2 changed files with 6 additions and 1 deletions
|
@ -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;'")
|
||||
'';
|
||||
})
|
||||
|
|
|
@ -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";
|
||||
|
|
Loading…
Reference in a new issue