gdal: Add SQLite & Spatialite support

This commit is contained in:
Chris Hodapp 2017-04-22 09:40:50 -04:00
parent 5cdf192827
commit 610570e979

View File

@ -1,10 +1,12 @@
{ stdenv, fetchurl, composableDerivation, unzip, libjpeg, libtiff, zlib { stdenv, fetchurl, composableDerivation, unzip, libjpeg, libtiff, zlib
, postgresql, mysql, libgeotiff, pythonPackages, proj, geos, openssl , postgresql, mysql, libgeotiff, pythonPackages, proj, geos, openssl
, libpng , libpng, sqlite, libspatialite
, netcdf, hdf5 , curl , netcdf, hdf5 , curl
, netcdfSupport ? true , netcdfSupport ? true
}: }:
with stdenv.lib;
composableDerivation.composableDerivation {} (fixed: rec { composableDerivation.composableDerivation {} (fixed: rec {
version = "2.1.3"; version = "2.1.3";
name = "gdal-${version}"; name = "gdal-${version}";
@ -14,7 +16,7 @@ composableDerivation.composableDerivation {} (fixed: rec {
sha256 = "0jh7filpf5dk5iz5acj7y3y49ihnzqypxckdlj0sjigbqq6hlsmf"; sha256 = "0jh7filpf5dk5iz5acj7y3y49ihnzqypxckdlj0sjigbqq6hlsmf";
}; };
buildInputs = [ unzip libjpeg libtiff libpng proj openssl ] buildInputs = [ unzip libjpeg libtiff libpng proj openssl sqlite libspatialite ]
++ (with pythonPackages; [ python numpy wrapPython ]) ++ (with pythonPackages; [ python numpy wrapPython ])
++ (stdenv.lib.optionals netcdfSupport [ netcdf hdf5 curl ]); ++ (stdenv.lib.optionals netcdfSupport [ netcdf hdf5 curl ]);
@ -28,10 +30,11 @@ composableDerivation.composableDerivation {} (fixed: rec {
"--with-libtiff=${libtiff.dev}" # optional (without largetiff support) "--with-libtiff=${libtiff.dev}" # optional (without largetiff support)
"--with-png=${libpng.dev}" # optional "--with-png=${libpng.dev}" # optional
"--with-libz=${zlib.dev}" # optional "--with-libz=${zlib.dev}" # optional
"--with-pg=${postgresql}/bin/pg_config" "--with-pg=${postgresql}/bin/pg_config"
"--with-mysql=${mysql.lib.dev}/bin/mysql_config" "--with-mysql=${mysql.lib.dev}/bin/mysql_config"
"--with-geotiff=${libgeotiff}" "--with-geotiff=${libgeotiff}"
"--with-sqlite3=${sqlite.dev}"
"--with-spatialite=${libspatialite}"
"--with-python" # optional "--with-python" # optional
"--with-static-proj4=${proj}" # optional "--with-static-proj4=${proj}" # optional
"--with-geos=${geos}/bin/geos-config"# optional "--with-geos=${geos}/bin/geos-config"# optional