anchor.diff:      libiconv
     ];
   
  -  configureFlags = [ "--disable-freexl" ];
  -
     enableParallelBuilding = true;
   
     postInstall = lib.optionalString stdenv.isDarwin ''
       ln -s $out/lib/mod_spatialite.{so,dylib}
     '';
  +
  +  # Failed tests (linux & darwin):
  +  # - check_extension
  +  # - check_sql_stmt_extension
  +  # - check_virtualtable6
  +  # - check_drop_rename
  +  # - check_get_normal_zoom_extension_load
  +  doCheck = false;
   
     meta = with lib; {
       description = "Extensible spatial index library in C++";
  
positive.code:   outputs = [ "out" "dev" ];
  
    src = fetchurl {
      url = "https://www.gaia-gis.it/gaia-sins/libspatialite-sources/${pname}-${version}.tar.gz";
      sha256 = "sha256-7svJQxHHgBLQWevA+uhupe9u7LEzA+boKzdTwbNAnpg=";
    };
  
    nativeBuildInputs = [ pkg-config ];
  
    buildInputs = [
      geos
      librttopo
      libxml2
  
negative.code: , stdenv
  , fetchurl
  , pkg-config
  , validatePkgConfig
  , freexl
  , geos
  , librttopo
  , libxml2
  