2022-04-27 09:35:20 +00:00
|
|
|
{ lib, mkDerivation, fetchFromGitHub, pkg-config
|
2021-03-09 03:18:52 +00:00
|
|
|
, qmake, qttools, kirigami2, qtquickcontrols2, qtlocation
|
2021-12-06 16:07:01 +00:00
|
|
|
, libosmscout, valhalla, libpostal, osrm-backend, protobuf
|
2021-03-09 03:18:52 +00:00
|
|
|
, libmicrohttpd_0_9_70, sqlite, marisa, kyotocabinet, boost
|
|
|
|
}:
|
|
|
|
|
|
|
|
let
|
|
|
|
date = fetchFromGitHub {
|
|
|
|
owner = "HowardHinnant";
|
|
|
|
repo = "date";
|
|
|
|
rev = "a2fdba1adcb076bf9a8343c07524afdf09aa8dcc";
|
|
|
|
sha256 = "00sf1pbaz0g0gsa0dlm23lxk4h46xm1jv1gzbjj5rr9sf1qccyr5";
|
|
|
|
};
|
|
|
|
in
|
|
|
|
mkDerivation rec {
|
|
|
|
pname = "osmscout-server";
|
2022-04-27 09:35:20 +00:00
|
|
|
version = "2.1.2";
|
2021-03-09 03:18:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "rinigus";
|
|
|
|
repo = "osmscout-server";
|
|
|
|
rev = version;
|
2022-04-27 09:35:20 +00:00
|
|
|
sha256 = "sha256-I14nQL0H2rMga+RDdAjykqmf7QIZveA6oGWu5PfZ89s=";
|
2021-03-09 03:18:52 +00:00
|
|
|
fetchSubmodules = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ qmake pkg-config qttools ];
|
|
|
|
buildInputs = [
|
|
|
|
kirigami2 qtquickcontrols2 qtlocation
|
2021-12-06 16:07:01 +00:00
|
|
|
valhalla libosmscout osrm-backend libmicrohttpd_0_9_70
|
2021-03-09 03:18:52 +00:00
|
|
|
libpostal sqlite marisa kyotocabinet boost protobuf date
|
|
|
|
];
|
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
qmakeFlags = [
|
|
|
|
"SCOUT_FLAVOR=kirigami" # Choose to build the kirigami UI variant
|
|
|
|
"CONFIG+=disable_mapnik" # Disable the optional mapnik backend
|
|
|
|
];
|
2021-03-09 03:18:52 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Maps server providing tiles, geocoder, and router";
|
|
|
|
homepage = "https://github.com/rinigus/osmscout-server";
|
|
|
|
license = licenses.gpl3Only;
|
|
|
|
maintainers = [ maintainers.Thra11 ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|