biome: 1.9.2 -> 1.9.3
[NixPkgs.git] / pkgs / applications / misc / osmscout-server / default.nix
blob05688d22bd1814cdd96f5f646c9882912b03be7a
1 { lib
2 , mkDerivation
3 , fetchFromGitHub
4 , fetchpatch
5 , pkg-config
6 , qmake
7 , qttools
8 , boost
9 , kirigami2
10 , kyotocabinet
11 , libmicrohttpd
12 , libosmscout
13 , libpostal
14 , marisa
15 , osrm-backend
16 , protobuf
17 , qtquickcontrols2
18 , qtlocation
19 , sqlite
20 , valhalla
23 let
24   date = fetchFromGitHub {
25     owner = "HowardHinnant";
26     repo = "date";
27     rev = "a2fdba1adcb076bf9a8343c07524afdf09aa8dcc";
28     sha256 = "00sf1pbaz0g0gsa0dlm23lxk4h46xm1jv1gzbjj5rr9sf1qccyr5";
29   };
31 mkDerivation rec {
32   pname = "osmscout-server";
33   version = "3.0.0";
35   src = fetchFromGitHub {
36     owner = "rinigus";
37     repo = "osmscout-server";
38     rev = version;
39     hash = "sha256-jcg/0SKeLviEC+vszh5DployKDAI7N+a8lzvImzFTvY=";
40     fetchSubmodules = true;
41   };
43   nativeBuildInputs = [ qmake pkg-config qttools ];
44   buildInputs = [
45     kirigami2 qtquickcontrols2 qtlocation
46     valhalla libosmscout osrm-backend libmicrohttpd
47     libpostal sqlite marisa kyotocabinet boost protobuf date
48   ];
50   patches = [
51     # Valhalla 3.2.1 support. Only required for next patch to apply cleanly
52     (fetchpatch {
53       url = "https://github.com/rinigus/osmscout-server/commit/1df9d383e61dd14cbe9e5b52412a2e951cee2ee4.patch";
54       hash = "sha256-h+YTyHr4RYgwH5bfVgyujSekbL2LfV8vJgVkjXT0I10=";
55     })
56     # Valhalla 3.4.0 support
57     (fetchpatch {
58       url = "https://github.com/rinigus/osmscout-server/commit/fe6562a4c3ba5da2735232ea8fdc7f71d7e7e714.patch";
59       hash = "sha256-wibLTFk3cFS5mcC71TgMA9ZAAHS3mbjboFHqax6nCxs=";
60     })
61   ];
63   qmakeFlags = [
64     "SCOUT_FLAVOR=kirigami" # Choose to build the kirigami UI variant
65     "CONFIG+=disable_mapnik" # Disable the optional mapnik backend
66   ];
68   meta = with lib; {
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;
74   };