From 8a7097972e424a16221e4f3c7e2b5c59f7143e23 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebasti=C3=A1n=20Bernardo=20Galkin?= Date: Thu, 19 Feb 2015 18:05:49 -0800 Subject: [PATCH] Postgis requires json_c to provide GeoJson support This change adds the needed build dependency and configuration to postgis --- pkgs/development/libraries/postgis/default.nix | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pkgs/development/libraries/postgis/default.nix b/pkgs/development/libraries/postgis/default.nix index 2d1400a2fcbb..7c247dd6c1d1 100644 --- a/pkgs/development/libraries/postgis/default.nix +++ b/pkgs/development/libraries/postgis/default.nix @@ -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 { ''; }); -} \ No newline at end of file +}