anchor.diff:      lz4
       libmysqlclient
       netcdf
  -    openexr
       openjpeg
       openssl
       pcre2
  
positive.code:     "-DGEOTIFF_LIBRARY_RELEASE=${lib.getLib libgeotiff}/lib/libgeotiff${stdenv.hostPlatform.extensions.sharedLibrary}"
      "-DMYSQL_INCLUDE_DIR=${lib.getDev libmysqlclient}/include/mysql"
      "-DMYSQL_LIBRARY=${lib.getLib libmysqlclient}/lib/mysql/libmysqlclient${stdenv.hostPlatform.extensions.sharedLibrary}"
      "-DCMAKE_SKIP_BUILD_RPATH=ON" # without, libgdal.so can't find libmariadb.so
    ];
  
    buildInputs = [
      armadillo
      arrow-cpp
      c-blosc
      brunsli
      cfitsio
  
negative.code:     libtiff
      tiledb
      libwebp
      zlib
      zstd
      python3
      python3.pkgs.numpy
    ] ++ lib.optionals (!stdenv.isDarwin) [
      # tests for formats enabled by these packages fail on macos
      arrow-cpp
      openexr
      xercesc
    ] ++ lib.optional stdenv.isDarwin libiconv;
  
    postInstall = ''
  