anchor.diff:      export PYTHONPATH=''${PYTHONPATH:+''${PYTHONPATH}:}$pythonInstallDir
     '';
   
  +  enableParallelBuilding = true;
  +
     meta = {
       description = "Translator library for raster geospatial data formats";
       homepage = http://www.gdal.org/;
  
positive.code:     ./python.patch
    ];
  
    hardeningDisable = [ "format" ];
  
    # Don't use optimization for gcc >= 4.3. That's said to be causing segfaults.
    # Unset CC and CXX as they confuse libtool.
  
negative.code: , libpng }:
  
  stdenv.mkDerivation rec {
    name = "gdal-${version}";
    version = "1.11.5";
  
    src = fetchurl {
      url = "https://download.osgeo.org/gdal/${version}/${name}.tar.xz";
      sha256 = "0hphxzvy23v3vqxx1y22hhhg4cypihrb8555y12nb4mrhzlw7zfl";
    };
  
    buildInputs = [ unzip libjpeg libtiff libpng python pythonPackages.numpy proj openssl ];
  