1{ lib, mkDerivation, fetchFromGitHub
2, cmake, qttools, kirigami2, qtquickcontrols2, qtlocation, qtsensors
3, nemo-qml-plugin-dbus, mapbox-gl-qml, s2geometry
4, python3, pyotherside
5}:
6
7mkDerivation rec {
8 pname = "pure-maps";
9 version = "3.2.0";
10
11 src = fetchFromGitHub {
12 owner = "rinigus";
13 repo = "pure-maps";
14 rev = version;
15 hash = "sha256-07Jk5ufYbBAa/UY1B0IoyuOAVt15rGCxCRXu3OeYyWU=";
16 fetchSubmodules = true;
17 };
18
19 nativeBuildInputs = [
20 cmake python3 qttools python3.pkgs.wrapPython
21 ];
22
23 buildInputs = [
24 kirigami2 qtquickcontrols2 qtlocation qtsensors
25 nemo-qml-plugin-dbus pyotherside mapbox-gl-qml s2geometry
26 ];
27
28 cmakeFlags = [ "-DFLAVOR=kirigami" ];
29
30 pythonPath = with python3.pkgs; [ gpxpy ];
31
32 preInstall = ''
33 buildPythonPath "$pythonPath"
34 qtWrapperArgs+=(--prefix PYTHONPATH : "$program_PYTHONPATH")
35 '';
36
37 meta = with lib; {
38 description = "Display vector and raster maps, places, routes, and provide navigation instructions with a flexible selection of data and service providers";
39 homepage = "https://github.com/rinigus/pure-maps";
40 changelog = "https://github.com/rinigus/pure-maps/blob/${src.rev}/NEWS.md";
41 license = licenses.gpl3Only;
42 maintainers = [ maintainers.Thra11 ];
43 platforms = platforms.linux;
44 };
45}