mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-09-29 07:32:58 +00:00
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
@ -24,6 +24,7 @@ import ./make-test-python.nix ({ pkgs, ...} : {
|
|||||||
master.wait_for_unit("postgresql")
|
master.wait_for_unit("postgresql")
|
||||||
master.sleep(10) # Hopefully this is long enough!!
|
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;'")
|
||||||
|
master.succeed("sudo -u postgres psql -c 'CREATE EXTENSION postgis_raster;'")
|
||||||
master.succeed("sudo -u postgres psql -c 'CREATE EXTENSION postgis_topology;'")
|
master.succeed("sudo -u postgres psql -c 'CREATE EXTENSION postgis_topology;'")
|
||||||
'';
|
'';
|
||||||
})
|
})
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
, postgresql
|
, postgresql
|
||||||
, geos
|
, geos
|
||||||
, proj
|
, proj
|
||||||
, gdal
|
, gdalMinimal
|
||||||
, json_c
|
, json_c
|
||||||
, pkg-config
|
, pkg-config
|
||||||
, file
|
, file
|
||||||
@ -14,6 +14,10 @@
|
|||||||
, pcre2
|
, pcre2
|
||||||
, nixosTests
|
, nixosTests
|
||||||
}:
|
}:
|
||||||
|
|
||||||
|
let
|
||||||
|
gdal = gdalMinimal;
|
||||||
|
in
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "postgis";
|
pname = "postgis";
|
||||||
version = "3.4.1";
|
version = "3.4.1";
|
||||||
|
Loading…
Reference in New Issue
Block a user