lol

Merge pull request #195213 from yorickvP/drop-gdal2

gdal_2: drop

authored by

Robert Scott and committed by
GitHub
ead59cfc edfbb674

+2 -96
-92
pkgs/development/libraries/gdal/2.4.nix
··· 1 - { lib, stdenv, fetchurl, fetchpatch, libjpeg, libtiff, zlib 2 - , postgresql, libmysqlclient, libgeotiff, python3Packages, proj, geos, openssl 3 - , libpng, sqlite, libspatialite, poppler, hdf4, qhull, giflib, expat 4 - , libiconv, libxml2 5 - , netcdfSupport ? true, netcdf, hdf5, curl 6 - }: 7 - 8 - with lib; 9 - 10 - stdenv.mkDerivation rec { 11 - pname = "gdal"; 12 - version = "2.4.4"; 13 - 14 - src = fetchurl { 15 - url = "https://download.osgeo.org/gdal/${version}/${pname}-${version}.tar.xz"; 16 - sha256 = "1n6w0m2603q9cldlz0wyscp75ci561dipc36jqbf3mjmylybv0x3"; 17 - }; 18 - 19 - patches = [ 20 - (fetchpatch { 21 - url = "https://github.com/OSGeo/gdal/commit/7a18e2669a733ebe3544e4f5c735fd4d2ded5fa3.patch"; 22 - sha256 = "sha256-rBgIxJcgRzZR1gyzDWK/Sh7MdPWeczxEYVELbYEV8JY="; 23 - relative = "gdal"; 24 - # this doesn't apply correctly because of line endings 25 - excludes = [ "third_party/LercLib/Lerc2.h" ]; 26 - }) 27 - ]; 28 - 29 - buildInputs = [ libjpeg libtiff libgeotiff libpng proj openssl sqlite 30 - libspatialite poppler hdf4 qhull giflib expat libxml2 proj ] 31 - ++ (with python3Packages; [ python numpy wrapPython ]) 32 - ++ lib.optional stdenv.isDarwin libiconv 33 - ++ lib.optionals netcdfSupport [ netcdf hdf5 curl ]; 34 - 35 - configureFlags = [ 36 - "--with-expat=${expat.dev}" 37 - "--with-jpeg=${libjpeg.dev}" 38 - "--with-libtiff=${libtiff.dev}" # optional (without largetiff support) 39 - "--with-png=${libpng.dev}" # optional 40 - "--with-poppler=${poppler.dev}" # optional 41 - "--with-libz=${zlib.dev}" # optional 42 - "--with-pg=${postgresql}/bin/pg_config" 43 - "--with-mysql=${getDev libmysqlclient}/bin/mysql_config" 44 - "--with-geotiff=${libgeotiff.dev}" 45 - "--with-sqlite3=${sqlite.dev}" 46 - "--with-spatialite=${libspatialite}" 47 - "--with-python" # optional 48 - "--with-proj=${proj.dev}" # optional 49 - "--with-geos=${geos}/bin/geos-config"# optional 50 - "--with-hdf4=${hdf4.dev}" # optional 51 - "--with-xml2=${libxml2.dev}/bin/xml2-config" # optional 52 - (if netcdfSupport then "--with-netcdf=${netcdf}" else "") 53 - ]; 54 - 55 - hardeningDisable = [ "format" ]; 56 - 57 - CXXFLAGS = "-fpermissive"; 58 - 59 - postPatch = '' 60 - sed -i '/ifdef bool/i\ 61 - #ifdef swap\ 62 - #undef swap\ 63 - #endif' ogr/ogrsf_frmts/mysql/ogr_mysql.h 64 - ''; 65 - 66 - # - Unset CC and CXX as they confuse libtool. 67 - # - teach gdal that libdf is the legacy name for libhdf 68 - preConfigure = '' 69 - unset CC CXX 70 - substituteInPlace configure \ 71 - --replace "-lmfhdf -ldf" "-lmfhdf -lhdf" 72 - ''; 73 - 74 - preBuild = '' 75 - substituteInPlace swig/python/GNUmakefile \ 76 - --replace "ifeq (\$(STD_UNIX_LAYOUT),\"TRUE\")" "ifeq (1,1)" 77 - ''; 78 - 79 - postInstall = '' 80 - wrapPythonPrograms 81 - ''; 82 - 83 - enableParallelBuilding = true; 84 - 85 - meta = { 86 - description = "Translator library for raster geospatial data formats"; 87 - homepage = "https://www.gdal.org/"; 88 - license = lib.licenses.mit; 89 - maintainers = [ lib.maintainers.marcweber ]; 90 - platforms = with lib.platforms; linux ++ darwin; 91 - }; 92 - }
+2 -2
pkgs/development/tools/poetry2nix/poetry2nix/overrides/default.nix
··· 600 600 601 601 fiona = super.fiona.overridePythonAttrs ( 602 602 old: { 603 - buildInputs = (old.buildInputs or [ ]) ++ [ pkgs.gdal_2 ]; 603 + buildInputs = (old.buildInputs or [ ]) ++ [ pkgs.gdal ]; 604 604 nativeBuildInputs = [ 605 - pkgs.gdal_2 # for gdal-config 605 + pkgs.gdal # for gdal-config 606 606 ]; 607 607 } 608 608 );
-2
pkgs/top-level/all-packages.nix
··· 18583 18583 autoreconfHook = buildPackages.autoreconfHook269; 18584 18584 }; 18585 18585 18586 - gdal_2 = callPackage ../development/libraries/gdal/2.4.nix { }; 18587 - 18588 18586 gdcm = callPackage ../development/libraries/gdcm { 18589 18587 inherit (darwin.apple_sdk.frameworks) ApplicationServices Cocoa; 18590 18588 };