@@ -1,4 +1,4 @@
1−{ stdenv, fetchurl, unzip, libjpeg, libtiff, zlib
1+{ stdenv, fetchurl, fetchpatch, unzip, libjpeg, libtiff, zlib
22, postgresql, mysql, libgeotiff, pythonPackages, proj, geos, openssl
33, libpng, sqlite, libspatialite, poppler, hdf4
44, libiconv
@@ -16,6 +16,16 @@ stdenv.mkDerivation rec {
1616 sha256 = "18iaamzkn0lipizynvspf3bs5qzgcy36hn6bbi941q8dlfdf8xbg";
1717 };
1818
19+ patches = [
20+ # fix build with recent Poppler
21+ (fetchpatch {
22+ url = "https://github.com/OSGeo/gdal/commit/124f0343436d1267319ac627fc220530091b41ea.diff";
23+ stripLen = 2;
24+ extraPrefix = "";
25+ sha256 = "1v6iiy4cgrdcfas3iva5swh9446pqfjh5p6bcab6y49hyjhpsgfy";
26+ })
27+ ];
28+
1929 buildInputs = [ unzip libjpeg libtiff libpng proj openssl sqlite
2030 libspatialite poppler hdf4 ]
2131 ++ (with pythonPackages; [ python numpy wrapPython ])