about summary refs log tree commit diff
path: root/pkgs/development/libraries/mapnik/default.nix
diff options
context:
space:
mode:
authorChris Hodapp <hodapp87@gmail.com>2017-04-20 14:31:37 -0400
committerChristoph Hrdinka <c.github@hrdinka.at>2017-04-21 16:50:43 +0200
commit5864baa4c6306b1922dc3ca88db1813d5136dadf (patch)
tree1bf1342addc4275eececf83c166da7f6d63c83b8 /pkgs/development/libraries/mapnik/default.nix
parentf88085d45f2afcac335720d525bc95bb744d10d2 (diff)
mapnik: add optional PostgreSQL dependency
Closes #25063.
Diffstat (limited to 'pkgs/development/libraries/mapnik/default.nix')
-rw-r--r--pkgs/development/libraries/mapnik/default.nix6
1 files changed, 6 insertions, 0 deletions
diff --git a/pkgs/development/libraries/mapnik/default.nix b/pkgs/development/libraries/mapnik/default.nix
index 661e1270e7f65..4bd89df1581ad 100644
--- a/pkgs/development/libraries/mapnik/default.nix
+++ b/pkgs/development/libraries/mapnik/default.nix
@@ -1,6 +1,9 @@
 { stdenv, fetchzip
 , boost, cairo, freetype, gdal, harfbuzz, icu, libjpeg, libpng, libtiff
 , libwebp, libxml2, proj, python2, scons, sqlite, zlib
+
+# supply a postgresql package to enable the PostGIS input plugin
+, postgresql ? null
 }:
 
 stdenv.mkDerivation rec {
@@ -21,6 +24,9 @@ stdenv.mkDerivation rec {
   buildInputs =
     [ boost cairo freetype gdal harfbuzz icu libjpeg libpng libtiff
       libwebp libxml2 proj python2 sqlite zlib
+
+      # optional inputs
+      postgresql
     ];
 
   configurePhase = ''