Postgis requires json_c to provide GeoJson support

This change adds the needed build dependency and configuration to postgis
This commit is contained in:
Sebastián Bernardo Galkin 2015-02-19 18:05:49 -08:00
parent 3e44f99055
commit 8a7097972e
1 changed files with 4 additions and 4 deletions

View File

@ -1,4 +1,4 @@
args@{fetchurl, composableDerivation, stdenv, perl, libxml2, postgresql, geos, proj, flex, gdal, pkgconfig, file, ...}: args@{fetchurl, composableDerivation, stdenv, perl, libxml2, postgresql, geos, proj, flex, gdal, json_c, pkgconfig, file, ...}:
/* /*
@ -88,11 +88,11 @@ in rec {
version = "2.1.4"; version = "2.1.4";
sha256 = "1z00n5654r7l38ydkn2grbwl5gg0mravjwxfdipp7j18hjiw4wyd"; sha256 = "1z00n5654r7l38ydkn2grbwl5gg0mravjwxfdipp7j18hjiw4wyd";
sql_srcs = ["postgis.sql" "spatial_ref_sys.sql"]; sql_srcs = ["postgis.sql" "spatial_ref_sys.sql"];
builtInputs = [gdal pkgconfig]; builtInputs = [gdal json_c pkgconfig];
dontDisableStatic = true; dontDisableStatic = true;
preConfigure = '' preConfigure = ''
sed -i 's@/usr/bin/file@${file}/bin/file@' configure sed -i 's@/usr/bin/file@${file}/bin/file@' configure
configureFlags="$configureFlags --with-gdalconfig=${gdal}/bin/gdal-config" configureFlags="$configureFlags --with-gdalconfig=${gdal}/bin/gdal-config --with-jsondir=${json_c}"
''; '';
postConfigure = '' postConfigure = ''
sed -i "s|@mkdir -p \$(DESTDIR)\$(PGSQL_BINDIR)||g ; sed -i "s|@mkdir -p \$(DESTDIR)\$(PGSQL_BINDIR)||g ;
@ -105,4 +105,4 @@ in rec {
''; '';
}); });
} }