osmscout-server: 1.17.1 -> 2.1.2
This commit is contained in:
parent
6f23da1e7e
commit
a59442c86e
1 changed files with 3 additions and 24 deletions
|
@ -1,4 +1,4 @@
|
||||||
{ lib, mkDerivation, fetchFromGitHub, fetchpatch, pkg-config
|
{ lib, mkDerivation, fetchFromGitHub, pkg-config
|
||||||
, qmake, qttools, kirigami2, qtquickcontrols2, qtlocation
|
, qmake, qttools, kirigami2, qtquickcontrols2, qtlocation
|
||||||
, libosmscout, valhalla, libpostal, osrm-backend, protobuf
|
, libosmscout, valhalla, libpostal, osrm-backend, protobuf
|
||||||
, libmicrohttpd_0_9_70, sqlite, marisa, kyotocabinet, boost
|
, libmicrohttpd_0_9_70, sqlite, marisa, kyotocabinet, boost
|
||||||
|
@ -14,30 +14,16 @@ let
|
||||||
in
|
in
|
||||||
mkDerivation rec {
|
mkDerivation rec {
|
||||||
pname = "osmscout-server";
|
pname = "osmscout-server";
|
||||||
version = "1.17.1";
|
version = "2.1.2";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "rinigus";
|
owner = "rinigus";
|
||||||
repo = "osmscout-server";
|
repo = "osmscout-server";
|
||||||
rev = version;
|
rev = version;
|
||||||
sha256 = "0rpsi6nyhcz6bv0jab4vixkxhjmn84xi0q2xz15a097hn46cklx9";
|
sha256 = "sha256-I14nQL0H2rMga+RDdAjykqmf7QIZveA6oGWu5PfZ89s=";
|
||||||
fetchSubmodules = true;
|
fetchSubmodules = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
# Two patches required to work with valhalla 3.1
|
|
||||||
patches = [
|
|
||||||
# require C++14 to match latest Valhalla
|
|
||||||
(fetchpatch {
|
|
||||||
url = "https://github.com/rinigus/osmscout-server/commit/78b41b9b4c607fe9bfd6fbd61ae31cb7c8a725cd.patch";
|
|
||||||
sha256 = "0gk9mdwa75awl0bj30gm8waj454d8k2yixxwh05m0p550cbv3lg0";
|
|
||||||
})
|
|
||||||
# add Valhalla 3.1 config
|
|
||||||
(fetchpatch {
|
|
||||||
url = "https://github.com/rinigus/osmscout-server/commit/584de8bd47700053960fa139a2d7f8d3d184c876.patch";
|
|
||||||
sha256 = "0liz72n83q93bzzyyiqjkxa6hp9zjx7v9rgsmpwf88gc4caqm2dz";
|
|
||||||
})
|
|
||||||
];
|
|
||||||
|
|
||||||
nativeBuildInputs = [ qmake pkg-config qttools ];
|
nativeBuildInputs = [ qmake pkg-config qttools ];
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
kirigami2 qtquickcontrols2 qtlocation
|
kirigami2 qtquickcontrols2 qtlocation
|
||||||
|
@ -45,13 +31,6 @@ mkDerivation rec {
|
||||||
libpostal sqlite marisa kyotocabinet boost protobuf date
|
libpostal sqlite marisa kyotocabinet boost protobuf date
|
||||||
];
|
];
|
||||||
|
|
||||||
# OSMScout server currently defaults to an earlier version of valhalla,
|
|
||||||
# but valhalla 3.1 support has been added. (See patches above)
|
|
||||||
# Replace the default valhalla.json with the valhalla 3.1 version
|
|
||||||
postPatch = ''
|
|
||||||
mv data/valhalla.json-3.1 data/valhalla.json
|
|
||||||
'';
|
|
||||||
|
|
||||||
qmakeFlags = [
|
qmakeFlags = [
|
||||||
"SCOUT_FLAVOR=kirigami" # Choose to build the kirigami UI variant
|
"SCOUT_FLAVOR=kirigami" # Choose to build the kirigami UI variant
|
||||||
"CONFIG+=disable_mapnik" # Disable the optional mapnik backend
|
"CONFIG+=disable_mapnik" # Disable the optional mapnik backend
|
||||||
|
|
Loading…
Reference in a new issue