18 stdenv.mkDerivation (finalAttrs: {
22 src = fetchFromGitHub {
25 rev = "v${finalAttrs.version}";
26 hash = "sha256-rB5oP03yaIzklwkGsIeS9ELbHOY9AObwjRrK9HBQFI4=";
30 substituteInPlace src/options_parser.cpp \
31 --replace-fail "config.json" "$out/share/tilemaker/config-openmaptiles.json" \
32 --replace-fail "process.lua" "$out/share/tilemaker/process-openmaptiles.lua"
33 substituteInPlace server/server.cpp \
34 --replace-fail "default_value(\"static\")" "default_value(\"$out/share/tilemaker/static\")"
52 cmakeFlags = lib.optional (stdenv.hostPlatform != stdenv.buildPlatform) (
53 lib.cmakeFeature "PROTOBUF_PROTOC_EXECUTABLE" "${buildPackages.protobuf}/bin/protoc"
56 env.NIX_CFLAGS_COMPILE = toString [ "-DTM_VERSION=${finalAttrs.version}" ];
59 installManPage ../docs/man/tilemaker.1
60 install -Dm644 ../resources/*.{json,lua} -t $out/share/tilemaker
61 cp -r ../server/static $out/share/tilemaker
64 passthru.tests.version = testers.testVersion {
65 package = finalAttrs.finalPackage;
66 command = "tilemaker --help";
70 description = "Make OpenStreetMap vector tiles without the stack";
71 homepage = "https://tilemaker.org/";
72 changelog = "https://github.com/systemed/tilemaker/blob/v${finalAttrs.version}/CHANGELOG.md";
73 license = licenses.free; # FTWPL
74 maintainers = with maintainers; [ sikmir ];
75 platforms = platforms.unix;
76 mainProgram = "tilemaker";