From e83550cae5fd257b6c401ea24e2068c310f913e9 Mon Sep 17 00:00:00 2001 From: Michel Kuhlmann Date: Tue, 23 Sep 2014 14:15:27 +0200 Subject: [PATCH] gdal: update from 1.7.1 to 1.11.0 and add python support --- pkgs/development/libraries/gdal/default.nix | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/pkgs/development/libraries/gdal/default.nix b/pkgs/development/libraries/gdal/default.nix index 7c78ca3ed6f..c397013750b 100644 --- a/pkgs/development/libraries/gdal/default.nix +++ b/pkgs/development/libraries/gdal/default.nix @@ -1,15 +1,15 @@ { stdenv, fetchurl, composableDerivation, unzip, libjpeg, libtiff, zlib -, postgresql, mysql, libgeotiff }: +, postgresql, mysql, libgeotiff, python, pythonPackages}: -composableDerivation.composableDerivation {} (fixed: { - name = "gdal-1.7.1"; +composableDerivation.composableDerivation {} (fixed: rec { + name = "gdal-1.11.0"; src = fetchurl { - url = ftp://ftp.remotesensing.org/gdal/gdal171.zip; - md5 = "f5592cff69b239166c9b64ff81943b1a"; + url = "http://download.osgeo.org/gdal/1.11.0/${name}.tar.gz"; + md5 = "9fdf0f2371a3e9863d83e69951c71ec4"; }; - buildInputs = [ unzip libjpeg libtiff ]; + buildInputs = [ unzip libjpeg libtiff python pythonPackages.numpy]; # don't use optimization for gcc >= 4.3. That's said to be causeing segfaults preConfigure = "export CFLAGS=-O0; export CXXFLAGS=-O0"; @@ -22,6 +22,7 @@ composableDerivation.composableDerivation {} (fixed: { "--with-pg=${postgresql}/bin/pg_config" "--with-mysql=${mysql}/bin/mysql_config" "--with-geotiff=${libgeotiff}" + "--with-python" # optional ]; meta = {