anchor.diff:      platforms = platforms.unix;
       maintainers = with maintainers; [ jglukasik das-g ];
     };
  -}
  +})
  
positive.code: , libosmium
  , protozero
  , rapidjson
  }:
  
  stdenv.mkDerivation rec {
    pname = "osm2pgsql";
    version = "1.7.0";
  
    src = fetchFromGitHub {
      owner = "openstreetmap";
      repo = pname;
      rev = version;
      hash = "sha256-MWJzCZdqvy/nH1Doj0fmGuzTubaHDnPOED7qgzvJ3ZU=";
    };
  
    postPatch = ''
  
negative.code:     "-DEXTERNAL_FMT=ON"
    ] ++ lib.optional withLuaJIT "-DWITH_LUAJIT:BOOL=ON";
  
    passthru.tests.version = testers.testVersion {
      package = finalAttrs.finalPackage;
    };
  
    meta = with lib; {
      description = "OpenStreetMap data to PostgreSQL converter";
      homepage = "https://osm2pgsql.org";
  