1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-21 13:10:33 +00:00

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

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";
sha256 = "1z00n5654r7l38ydkn2grbwl5gg0mravjwxfdipp7j18hjiw4wyd";
sql_srcs = ["postgis.sql" "spatial_ref_sys.sql"];
builtInputs = [gdal pkgconfig];
builtInputs = [gdal json_c pkgconfig];
dontDisableStatic = true;
preConfigure = ''
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 = ''
sed -i "s|@mkdir -p \$(DESTDIR)\$(PGSQL_BINDIR)||g ;
@ -105,4 +105,4 @@ in rec {
'';
});
}
}