Skip to content

Commit

Permalink
gdal: Add libxml2 to build
Browse files Browse the repository at this point in the history
(cherry picked from commit 4af38a2)
Backport of #47972
  • Loading branch information
Hodapp87 authored and srhb committed Oct 7, 2018
1 parent be47bab commit 090f5e0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pkgs/development/libraries/gdal/default.nix
@@ -1,7 +1,7 @@
{ stdenv, fetchurl, fetchpatch, unzip, libjpeg, libtiff, zlib
, postgresql, mysql, libgeotiff, pythonPackages, proj, geos, openssl
, libpng, sqlite, libspatialite, poppler, hdf4, qhull, giflib, expat
, libiconv
, libiconv, libxml2
, netcdfSupport ? true, netcdf, hdf5, curl
}:

Expand All @@ -17,7 +17,7 @@ stdenv.mkDerivation rec {
};

buildInputs = [ unzip libjpeg libtiff libpng proj openssl sqlite
libspatialite poppler hdf4 qhull giflib expat ]
libspatialite poppler hdf4 qhull giflib expat libxml2 ]
++ (with pythonPackages; [ python numpy wrapPython ])
++ stdenv.lib.optional stdenv.isDarwin libiconv
++ stdenv.lib.optionals netcdfSupport [ netcdf hdf5 curl ];
Expand All @@ -38,6 +38,7 @@ stdenv.mkDerivation rec {
"--with-proj=${proj}" # optional
"--with-geos=${geos}/bin/geos-config"# optional
"--with-hdf4=${hdf4.dev}" # optional
"--with-xml2=${libxml2.dev}/bin/xml2-config" # optional
(if netcdfSupport then "--with-netcdf=${netcdf}" else "")
];

Expand Down

0 comments on commit 090f5e0

Please sign in to comment.