Skip to content

Commit

Permalink
pkgs(postgis): build with minimal gdal version
Browse files Browse the repository at this point in the history
  • Loading branch information
imincik committed Jan 19, 2024
1 parent 68ef05a commit fdb0921
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
3 changes: 2 additions & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -171,8 +171,9 @@
postgresql-packages = forAllPostgresqlVersions (postgresql: rec {

postgis = pkgs.callPackage ./pkgs/postgis/postgis.nix {
inherit gdal geos proj;
inherit geos proj;

gdalMinimal = gdal-minimal;
postgresql = pkgs.${postgresql};
};

Expand Down
2 changes: 1 addition & 1 deletion pkgs/geonixcli/templates/override/overrides.nix
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ rec {

# >>> CUSTOMIZE HERE

})).override { inherit gdal geos proj; };
})).override { inherit geos proj; gdalMinimal = gdal-minimal; };

}; ### POSTGRESQL PACKAGES

Expand Down
6 changes: 5 additions & 1 deletion pkgs/postgis/postgis.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
, postgresql
, geos
, proj
, gdal
, gdalMinimal
, json_c
, pkg-config
, file
Expand All @@ -14,6 +14,10 @@
, pcre2
, nixosTests
}:

let
gdal = gdalMinimal;
in
stdenv.mkDerivation rec {
pname = "postgis";
version = "3.4.1";
Expand Down

0 comments on commit fdb0921

Please sign in to comment.