gdal: 2.0.1 -> 2.0.2 + netCDF format support

may be disabled by netcdfSupport=false

+9 -4
+9 -4
pkgs/development/libraries/gdal/default.nix
··· 1 { stdenv, fetchurl, composableDerivation, unzip, libjpeg, libtiff, zlib 2 , postgresql, mysql, libgeotiff, pythonPackages, proj, geos, openssl 3 - , libpng }: 4 5 composableDerivation.composableDerivation {} (fixed: rec { 6 - version = "2.0.1"; 7 name = "gdal-${version}"; 8 9 src = fetchurl { 10 url = "http://download.osgeo.org/gdal/${version}/${name}.tar.gz"; 11 - sha256 = "b55f794768e104a2fd0304eaa61bb8bda3dc7c4e14f2c9d0913baca3e55b83ab"; 12 }; 13 14 buildInputs = [ unzip libjpeg libtiff libpng proj openssl ] 15 - ++ (with pythonPackages; [ python numpy wrapPython ]); 16 17 patches = [ 18 # This ensures that the python package is installed into gdal's prefix, ··· 36 "--with-python" # optional 37 "--with-static-proj4=${proj}" # optional 38 "--with-geos=${geos}/bin/geos-config"# optional 39 ]; 40 41 # Prevent this:
··· 1 { stdenv, fetchurl, composableDerivation, unzip, libjpeg, libtiff, zlib 2 , postgresql, mysql, libgeotiff, pythonPackages, proj, geos, openssl 3 + , libpng 4 + , netcdf, hdf5 , curl 5 + , netcdfSupport ? true 6 + }: 7 8 composableDerivation.composableDerivation {} (fixed: rec { 9 + version = "2.0.2"; 10 name = "gdal-${version}"; 11 12 src = fetchurl { 13 url = "http://download.osgeo.org/gdal/${version}/${name}.tar.gz"; 14 + sha256 = "db7722caf8d9dd798ec18012b9cacf40a518918466126a88b9fd277bd7d40cc4"; 15 }; 16 17 buildInputs = [ unzip libjpeg libtiff libpng proj openssl ] 18 + ++ (with pythonPackages; [ python numpy wrapPython ]) 19 + ++ (stdenv.lib.optionals netcdfSupport [ netcdf hdf5 curl ]); 20 21 patches = [ 22 # This ensures that the python package is installed into gdal's prefix, ··· 40 "--with-python" # optional 41 "--with-static-proj4=${proj}" # optional 42 "--with-geos=${geos}/bin/geos-config"# optional 43 + (if netcdfSupport then "--with-netcdf=${netcdf}" else "") 44 ]; 45 46 # Prevent this: