git.iko.soy/typeable/nixpkgs
on master help sign in
gdal: update to 1.11.1 and compiling with proj
e65bd08Michel Kuhlmann
pkgs/development/libraries/gdal/default.nix+10−8
@@ -1,28 +1,30 @@
1{ stdenv, fetchurl, composableDerivation, unzip, libjpeg, libtiff, zlib
1{ stdenv, fetchurl, composableDerivation, unzip, libjpeg, libtiff, zlib
2−, postgresql, mysql, libgeotiff, python, pythonPackages}:
2+, postgresql, mysql, libgeotiff, python, pythonPackages, proj}:
3
3
4composableDerivation.composableDerivation {} (fixed: rec {
4composableDerivation.composableDerivation {} (fixed: rec {
5+ version = "1.11.1";
5− name = "gdal-1.11.0";
6+ name = "gdal-${version}";
6
7
7 src = fetchurl {
8 src = fetchurl {
8− url = "http://download.osgeo.org/gdal/1.11.0/${name}.tar.gz";
9+ url = "http://download.osgeo.org/gdal/${version}/${name}.tar.gz";
9− md5 = "9fdf0f2371a3e9863d83e69951c71ec4";
10+ sha256 = "0h1kib2pzv4nbppdnxv6vhngvk9ic531y8rzcwb8bg6am125jszl";
10 };
11 };
11
12
12− buildInputs = [ unzip libjpeg libtiff python pythonPackages.numpy];
13+ buildInputs = [ unzip libjpeg libtiff python pythonPackages.numpy proj];
13
14
14 # don't use optimization for gcc >= 4.3. That's said to be causeing segfaults
15 # don't use optimization for gcc >= 4.3. That's said to be causeing segfaults
15 preConfigure = "export CFLAGS=-O0; export CXXFLAGS=-O0";
16 preConfigure = "export CFLAGS=-O0; export CXXFLAGS=-O0";
16
17
17 configureFlags = [
18 configureFlags = [
18 "--with-jpeg=${libjpeg}"
19 "--with-jpeg=${libjpeg}"
19− "--with-libtiff=${libtiff}" # optional (without largetiff support
20+ "--with-libtiff=${libtiff}" # optional (without largetiff support
20− "--with-libz=${zlib}" # optional
21+ "--with-libz=${zlib}" # optional
21
22
22 "--with-pg=${postgresql}/bin/pg_config"
23 "--with-pg=${postgresql}/bin/pg_config"
23 "--with-mysql=${mysql}/bin/mysql_config"
24 "--with-mysql=${mysql}/bin/mysql_config"
24 "--with-geotiff=${libgeotiff}"
25 "--with-geotiff=${libgeotiff}"
25− "--with-python" # optional
26+ "--with-python" # optional
27+ "--with-static-proj4=${proj}" # optional
26 ];
28 ];
27
29
28 meta = {
30 meta = {