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: , libpng }:
  
  stdenv.mkDerivation rec {
    version = "1.11.3";
    name = "gdal-${version}";
  
    src = fetchurl {
      url = "https://download.osgeo.org/gdal/${version}/${name}.tar.gz";
      sha256 = "561588bdfd9ca91919d4679a77a2b44214b158934ee8b425295ca5be33a1014d";
    };
  
    buildInputs = [ unzip libjpeg libtiff libpng python pythonPackages.numpy proj openssl ];
  
negative.code:     ./python.patch
    ];
  
    hardeningDisable = [ "format" "fortify" ];
  
    # Don't use optimization for gcc >= 4.3. That's said to be causing segfaults.
    # Unset CC and CXX as they confuse libtool.
  