anchor.diff:      maintainers = with maintainers; [ sikmir ];
       platforms = platforms.unix;
     };
  -}
  +})
  
positive.code:   cmakeFlags = lib.optional (stdenv.hostPlatform != stdenv.buildPlatform)
      "-DPROTOBUF_PROTOC_EXECUTABLE=${buildPackages.protobuf}/bin/protoc";
  
    postInstall = ''
      installManPage ../docs/man/tilemaker.1
      install -Dm644 ../resources/* -t $out/share/tilemaker
    '';
  
    meta = with lib; {
      description = "Make OpenStreetMap vector tiles without the stack";
  
negative.code: { lib, stdenv, fetchFromGitHub, fetchpatch, buildPackages, cmake, installShellFiles
  , boost, lua, protobuf, rapidjson, shapelib, sqlite, zlib, testers }:
  
  stdenv.mkDerivation (finalAttrs: {
    pname = "tilemaker";
    version = "2.2.0";
  
    src = fetchFromGitHub {
      owner = "systemed";
      repo = "tilemaker";
      rev = "v${finalAttrs.version}";
      hash = "sha256-st6WDCk1RZ2lbfrudtcD+zenntyTMRHrIXw3nX5FHOU=";
    };
  
    patches = [
      # Fix build with Boost >= 1.79, remove on next upstream release
      (fetchpatch {
        url = "https://github.com/systemed/tilemaker/commit/252e7f2ad8938e38d51783d1596307dcd27ed269.patch";
        hash = "sha256-YSkhmpzEYk/mxVPSDYdwZclooB3zKRjDPzqamv6Nvyc=";
      })
    ];
  
    postPatch = ''
      substituteInPlace src/tilemaker.cpp \
  