nixpkgs/pkgs/applications/misc/pure-maps/default.nix

46 lines
1.3 KiB
Nix
Raw Normal View History

{ lib, mkDerivation, fetchFromGitHub
2022-01-16 17:07:32 +00:00
, cmake, qttools, kirigami2, qtquickcontrols2, qtlocation, qtsensors
2020-12-28 20:04:09 +00:00
, nemo-qml-plugin-dbus, mapbox-gl-qml, s2geometry
, python3, pyotherside
2020-12-28 20:04:09 +00:00
}:
mkDerivation rec {
pname = "pure-maps";
2022-07-29 18:12:50 +00:00
version = "3.1.0";
2020-12-28 20:04:09 +00:00
src = fetchFromGitHub {
owner = "rinigus";
repo = "pure-maps";
rev = version;
2022-07-29 18:12:50 +00:00
hash = "sha256-PjZ8aKF+g3mH7z6LIUxI7mbtkcFv3wznBywaX/Y+1FU=";
2020-12-28 20:04:09 +00:00
fetchSubmodules = true;
};
nativeBuildInputs = [
2022-01-16 17:07:32 +00:00
cmake python3 qttools python3.pkgs.wrapPython
];
2020-12-28 20:04:09 +00:00
buildInputs = [
kirigami2 qtquickcontrols2 qtlocation qtsensors
nemo-qml-plugin-dbus pyotherside mapbox-gl-qml s2geometry
];
2022-01-16 17:07:32 +00:00
cmakeFlags = [ "-DFLAVOR=kirigami" ];
2020-12-28 20:04:09 +00:00
pythonPath = with python3.pkgs; [ gpxpy ];
preInstall = ''
buildPythonPath "$pythonPath"
qtWrapperArgs+=(--prefix PYTHONPATH : "$program_PYTHONPATH")
2020-12-28 20:04:09 +00:00
'';
meta = with lib; {
description = "Display vector and raster maps, places, routes, and provide navigation instructions with a flexible selection of data and service providers";
homepage = "https://github.com/rinigus/pure-maps";
changelog = "https://github.com/rinigus/pure-maps/blob/${src.rev}/NEWS.md";
2020-12-28 20:04:09 +00:00
license = licenses.gpl3Only;
maintainers = [ maintainers.Thra11 ];
platforms = platforms.linux;
};
}