gdal: fix darwin build

This commit is contained in:
Daiderd Jordan 2017-05-02 22:21:03 +02:00
parent b88296818d
commit 516f909acb
No known key found for this signature in database
GPG key ID: D02435D05B810C96

View file

@ -1,12 +1,12 @@
{ stdenv, fetchurl, composableDerivation, unzip, libjpeg, libtiff, zlib
, postgresql, mysql, libgeotiff, pythonPackages, proj, geos, openssl
, libpng, sqlite, libspatialite
, netcdf, hdf5 , curl
, netcdfSupport ? true
}:
, libiconv
, netcdfSupport ? true, netcdf, hdf5 , curl
}:
with stdenv.lib;
composableDerivation.composableDerivation {} (fixed: rec {
version = "2.1.3";
name = "gdal-${version}";
@ -18,7 +18,8 @@ composableDerivation.composableDerivation {} (fixed: rec {
buildInputs = [ unzip libjpeg libtiff libpng proj openssl sqlite libspatialite ]
++ (with pythonPackages; [ python numpy wrapPython ])
++ (stdenv.lib.optionals netcdfSupport [ netcdf hdf5 curl ]);
++ stdenv.lib.optional stdenv.isDarwin libiconv
++ stdenv.lib.optionals netcdfSupport [ netcdf hdf5 curl ];
hardeningDisable = [ "format" ];