diff options
Diffstat (limited to 'pkgs/development/libraries/gdal/default.nix')
-rw-r--r-- | pkgs/development/libraries/gdal/default.nix | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/pkgs/development/libraries/gdal/default.nix b/pkgs/development/libraries/gdal/default.nix index fe7d0869fbd..6e1ada69039 100644 --- a/pkgs/development/libraries/gdal/default.nix +++ b/pkgs/development/libraries/gdal/default.nix @@ -1,17 +1,18 @@ { stdenv, fetchurl, composableDerivation, unzip, libjpeg, libtiff, zlib -, postgresql, mysql, libgeotiff, python, pythonPackages, proj, geos, openssl +, postgresql, mysql, libgeotiff, pythonPackages, proj, geos, openssl , libpng }: composableDerivation.composableDerivation {} (fixed: rec { - version = "1.11.2"; + version = "2.0.0"; name = "gdal-${version}"; src = fetchurl { url = "http://download.osgeo.org/gdal/${version}/${name}.tar.gz"; - sha256 = "66bc8192d24e314a66ed69285186d46e6999beb44fc97eeb9c76d82a117c0845"; + sha256 = "53761563ff53c5bf27bff7c4d6cab8bb1634baccefda05348e0f3b7acaf4c9e6"; }; - buildInputs = [ unzip libjpeg libtiff libpng python pythonPackages.numpy proj openssl ]; + buildInputs = [ unzip libjpeg libtiff libpng proj openssl ] + ++ (with pythonPackages; [ python numpy wrapPython ]); patches = [ # This ensures that the python package is installed into gdal's prefix, @@ -44,11 +45,15 @@ composableDerivation.composableDerivation {} (fixed: rec { # TEST FAILED: /nix/store/xkrmb8xnvqxzjwsdmasqmsdh1a5y2y99-gdal-1.11.2/lib/python2.7/site-packages/ does NOT support .pth files # error: bad install directory or PYTHONPATH preBuild = '' - pythonInstallDir=$out/lib/${python.libPrefix}/site-packages + pythonInstallDir=$out/lib/${pythonPackages.python.libPrefix}/site-packages mkdir -p $pythonInstallDir export PYTHONPATH=''${PYTHONPATH:+''${PYTHONPATH}:}$pythonInstallDir ''; + postInstall = '' + wrapPythonPrograms + ''; + meta = { description = "Translator library for raster geospatial data formats"; homepage = http://www.gdal.org/; |