Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)

Merge pull request #47972 from Hodapp87/gdal_libxml2

gdal: add libxml2 to build

authored by

Sarah Brofeldt and committed by
GitHub
07650009 1c2d5752

+3 -2
+3 -2
pkgs/development/libraries/gdal/default.nix
··· 1 1 { stdenv, fetchurl, fetchpatch, unzip, libjpeg, libtiff, zlib 2 2 , postgresql, mysql, libgeotiff, pythonPackages, proj, geos, openssl 3 3 , libpng, sqlite, libspatialite, poppler, hdf4, qhull, giflib, expat 4 - , libiconv 4 + , libiconv, libxml2 5 5 , netcdfSupport ? true, netcdf, hdf5, curl 6 6 }: 7 7 ··· 17 17 }; 18 18 19 19 buildInputs = [ unzip libjpeg libtiff libpng proj openssl sqlite 20 - libspatialite poppler hdf4 qhull giflib expat ] 20 + libspatialite poppler hdf4 qhull giflib expat libxml2 ] 21 21 ++ (with pythonPackages; [ python numpy wrapPython ]) 22 22 ++ stdenv.lib.optional stdenv.isDarwin libiconv 23 23 ++ stdenv.lib.optionals netcdfSupport [ netcdf hdf5 curl ]; ··· 38 38 "--with-proj=${proj}" # optional 39 39 "--with-geos=${geos}/bin/geos-config"# optional 40 40 "--with-hdf4=${hdf4.dev}" # optional 41 + "--with-xml2=${libxml2.dev}/bin/xml2-config" # optional 41 42 (if netcdfSupport then "--with-netcdf=${netcdf}" else "") 42 43 ]; 43 44