24 date = fetchFromGitHub {
25 owner = "HowardHinnant";
27 rev = "a2fdba1adcb076bf9a8343c07524afdf09aa8dcc";
28 sha256 = "00sf1pbaz0g0gsa0dlm23lxk4h46xm1jv1gzbjj5rr9sf1qccyr5";
32 pname = "osmscout-server";
35 src = fetchFromGitHub {
37 repo = "osmscout-server";
39 hash = "sha256-jcg/0SKeLviEC+vszh5DployKDAI7N+a8lzvImzFTvY=";
40 fetchSubmodules = true;
43 nativeBuildInputs = [ qmake pkg-config qttools ];
45 kirigami2 qtquickcontrols2 qtlocation
46 valhalla libosmscout osrm-backend libmicrohttpd
47 libpostal sqlite marisa kyotocabinet boost protobuf date
51 # Valhalla 3.2.1 support. Only required for next patch to apply cleanly
53 url = "https://github.com/rinigus/osmscout-server/commit/1df9d383e61dd14cbe9e5b52412a2e951cee2ee4.patch";
54 hash = "sha256-h+YTyHr4RYgwH5bfVgyujSekbL2LfV8vJgVkjXT0I10=";
56 # Valhalla 3.4.0 support
58 url = "https://github.com/rinigus/osmscout-server/commit/fe6562a4c3ba5da2735232ea8fdc7f71d7e7e714.patch";
59 hash = "sha256-wibLTFk3cFS5mcC71TgMA9ZAAHS3mbjboFHqax6nCxs=";
64 "SCOUT_FLAVOR=kirigami" # Choose to build the kirigami UI variant
65 "CONFIG+=disable_mapnik" # Disable the optional mapnik backend
69 description = "Maps server providing tiles, geocoder, and router";
70 homepage = "https://github.com/rinigus/osmscout-server";
71 license = licenses.gpl3Only;
72 maintainers = [ maintainers.Thra11 ];
73 platforms = platforms.linux;