diff options
author | Daiderd Jordan <daiderd@gmail.com> | 2017-05-02 22:21:03 +0200 |
---|---|---|
committer | Daiderd Jordan <daiderd@gmail.com> | 2017-05-02 22:21:03 +0200 |
commit | 516f909acbe0a22d39daf71c3808accc3014202f (patch) | |
tree | 90e4e897f5f6ec263e630a40ba448082298c4ae9 /pkgs/development/libraries/gdal | |
parent | b88296818de1f96745d529317c6047f651bade5b (diff) | |
download | nixlib-516f909acbe0a22d39daf71c3808accc3014202f.tar nixlib-516f909acbe0a22d39daf71c3808accc3014202f.tar.gz nixlib-516f909acbe0a22d39daf71c3808accc3014202f.tar.bz2 nixlib-516f909acbe0a22d39daf71c3808accc3014202f.tar.lz nixlib-516f909acbe0a22d39daf71c3808accc3014202f.tar.xz nixlib-516f909acbe0a22d39daf71c3808accc3014202f.tar.zst nixlib-516f909acbe0a22d39daf71c3808accc3014202f.zip |
gdal: fix darwin build
Diffstat (limited to 'pkgs/development/libraries/gdal')
-rw-r--r-- | pkgs/development/libraries/gdal/default.nix | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/pkgs/development/libraries/gdal/default.nix b/pkgs/development/libraries/gdal/default.nix index e39d39ab81b5..599a2c70f139 100644 --- a/pkgs/development/libraries/gdal/default.nix +++ b/pkgs/development/libraries/gdal/default.nix @@ -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" ]; |