biome: 1.9.2 -> 1.9.3
[NixPkgs.git] / pkgs / applications / misc / pure-maps / default.nix
blob1531d6edb7a82980ef621aea0b0557954c0200c7
1 { lib, mkDerivation, fetchFromGitHub
2 , cmake, qttools, kirigami2, qtquickcontrols2, qtlocation, qtsensors
3 , nemo-qml-plugin-dbus, mapbox-gl-qml, s2geometry
4 , python3, pyotherside
5 }:
7 mkDerivation rec {
8   pname = "pure-maps";
9   version = "3.3.0";
11   src = fetchFromGitHub {
12     owner = "rinigus";
13     repo = "pure-maps";
14     rev = version;
15     hash = "sha256-TeFolD3jXRdLGfXdy+QcwtOcQQVUB5fn8PwoYfRLaPQ=";
16     fetchSubmodules = true;
17   };
19   nativeBuildInputs = [
20     cmake python3 qttools python3.pkgs.wrapPython
21   ];
23   buildInputs = [
24     kirigami2 qtquickcontrols2 qtlocation qtsensors
25     nemo-qml-plugin-dbus pyotherside mapbox-gl-qml s2geometry
26   ];
28   cmakeFlags = [ "-DFLAVOR=kirigami" ];
30   pythonPath = with python3.pkgs; [ gpxpy ];
32   preInstall = ''
33     buildPythonPath "$pythonPath"
34     qtWrapperArgs+=(--prefix PYTHONPATH : "$program_PYTHONPATH")
35   '';
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     mainProgram = "pure-maps";
40     homepage = "https://github.com/rinigus/pure-maps";
41     changelog = "https://github.com/rinigus/pure-maps/blob/${src.rev}/NEWS.md";
42     license = licenses.gpl3Only;
43     maintainers = [ maintainers.Thra11 ];
44     platforms = platforms.linux;
45   };