diff options
author | Bruno Bzeznik Bruno.Bzeznik@imag.fr <Bruno.Bzeznik@imag.fr> | 2016-02-19 16:35:19 +0100 |
---|---|---|
committer | Bruno Bzeznik Bruno.Bzeznik@imag.fr <Bruno.Bzeznik@imag.fr> | 2016-02-24 10:39:44 +0100 |
commit | c4644c8b437683a49b0445075ea3bb225a6005a7 (patch) | |
tree | 502f734475c82ef4cafb4e6645fbc758d96f1a6d /pkgs/development/libraries/gdal | |
parent | be0abb32f6a049fc5713f6b9235f01e4c6a1efcf (diff) | |
download | nixpkgs-c4644c8b437683a49b0445075ea3bb225a6005a7.tar nixpkgs-c4644c8b437683a49b0445075ea3bb225a6005a7.tar.gz nixpkgs-c4644c8b437683a49b0445075ea3bb225a6005a7.tar.bz2 nixpkgs-c4644c8b437683a49b0445075ea3bb225a6005a7.tar.lz nixpkgs-c4644c8b437683a49b0445075ea3bb225a6005a7.tar.xz nixpkgs-c4644c8b437683a49b0445075ea3bb225a6005a7.tar.zst nixpkgs-c4644c8b437683a49b0445075ea3bb225a6005a7.zip |
gdal: 2.0.1 -> 2.0.2 + netCDF format support
may be disabled by netcdfSupport=false
Diffstat (limited to 'pkgs/development/libraries/gdal')
-rw-r--r-- | pkgs/development/libraries/gdal/default.nix | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/pkgs/development/libraries/gdal/default.nix b/pkgs/development/libraries/gdal/default.nix index 8cf84eb08c3..1607387160d 100644 --- a/pkgs/development/libraries/gdal/default.nix +++ b/pkgs/development/libraries/gdal/default.nix @@ -1,18 +1,22 @@ { stdenv, fetchurl, composableDerivation, unzip, libjpeg, libtiff, zlib , postgresql, mysql, libgeotiff, pythonPackages, proj, geos, openssl -, libpng }: +, libpng +, netcdf, hdf5 , curl +, netcdfSupport ? true + }: composableDerivation.composableDerivation {} (fixed: rec { - version = "2.0.1"; + version = "2.0.2"; name = "gdal-${version}"; src = fetchurl { url = "http://download.osgeo.org/gdal/${version}/${name}.tar.gz"; - sha256 = "b55f794768e104a2fd0304eaa61bb8bda3dc7c4e14f2c9d0913baca3e55b83ab"; + sha256 = "db7722caf8d9dd798ec18012b9cacf40a518918466126a88b9fd277bd7d40cc4"; }; buildInputs = [ unzip libjpeg libtiff libpng proj openssl ] - ++ (with pythonPackages; [ python numpy wrapPython ]); + ++ (with pythonPackages; [ python numpy wrapPython ]) + ++ (stdenv.lib.optionals netcdfSupport [ netcdf hdf5 curl ]); patches = [ # This ensures that the python package is installed into gdal's prefix, @@ -36,6 +40,7 @@ composableDerivation.composableDerivation {} (fixed: rec { "--with-python" # optional "--with-static-proj4=${proj}" # optional "--with-geos=${geos}/bin/geos-config"# optional + (if netcdfSupport then "--with-netcdf=${netcdf}" else "") ]; # Prevent this: |