git.iko.soy/typeable/nixpkgs
on master help sign in
Postgis requires json_c to provide GeoJson support

This change adds the needed build dependency and configuration to postgis

commit8a7097972e424a16221e4f3c7e2b5c59f7143e23 authorSebastián Bernardo Galkin <paraseba@gmail.com> dateThu 19 Feb 2015, 18:05 (12 years ago) parent3e44f99
1 file changed+4−4
pkgs/development/libraries/postgis/default.nix+4−4
pkgs/development/libraries/postgis/default.nix+4−4
@@ -1,4 +1,4 @@
1−args@{fetchurl, composableDerivation, stdenv, perl, libxml2, postgresql, geos, proj, flex, gdal, pkgconfig, file, ...}:
1+args@{fetchurl, composableDerivation, stdenv, perl, libxml2, postgresql, geos, proj, flex, gdal, json_c, pkgconfig, file, ...}:
22
33 /*
44
@@ -88,11 +88,11 @@ in rec {
8888 version = "2.1.4";
8989 sha256 = "1z00n5654r7l38ydkn2grbwl5gg0mravjwxfdipp7j18hjiw4wyd";
9090 sql_srcs = ["postgis.sql" "spatial_ref_sys.sql"];
91− builtInputs = [gdal pkgconfig];
91+ builtInputs = [gdal json_c pkgconfig];
9292 dontDisableStatic = true;
9393 preConfigure = ''
9494 sed -i 's@/usr/bin/file@${file}/bin/file@' configure
95− configureFlags="$configureFlags --with-gdalconfig=${gdal}/bin/gdal-config"
95+ configureFlags="$configureFlags --with-gdalconfig=${gdal}/bin/gdal-config --with-jsondir=${json_c}"
9696 '';
9797 postConfigure = ''
9898 sed -i "s|@mkdir -p \$(DESTDIR)\$(PGSQL_BINDIR)||g ;
@@ -105,4 +105,4 @@ in rec {
105105 '';
106106 });
107107
108−}
108+}