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