2021-03-13 15:03:37 +00:00
|
|
|
{ lib, mkDerivation, fetchFromGitHub
|
2020-12-28 20:04:09 +00:00
|
|
|
, qmake, qttools, kirigami2, qtquickcontrols2, qtlocation, qtsensors
|
|
|
|
, nemo-qml-plugin-dbus, mapbox-gl-qml, s2geometry
|
2021-03-13 15:03:37 +00:00
|
|
|
, python3, pyotherside
|
2020-12-28 20:04:09 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
mkDerivation rec {
|
|
|
|
pname = "pure-maps";
|
2021-04-01 19:28:05 +00:00
|
|
|
version = "2.6.5";
|
2020-12-28 20:04:09 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "rinigus";
|
|
|
|
repo = "pure-maps";
|
|
|
|
rev = version;
|
2021-04-01 19:28:05 +00:00
|
|
|
sha256 = "17gfb7rdaadmcdba4mhish0jrz9lmiban6fpzwhyvn8z1rc43zx9";
|
2020-12-28 20:04:09 +00:00
|
|
|
fetchSubmodules = true;
|
|
|
|
};
|
|
|
|
|
2021-03-13 15:03:37 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
qmake 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
|
|
|
|
];
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace pure-maps.pro \
|
|
|
|
--replace '$$[QT_HOST_BINS]/lconvert' 'lconvert'
|
|
|
|
'';
|
|
|
|
|
|
|
|
qmakeFlags = [ "FLAVOR=kirigami" ];
|
|
|
|
|
2021-03-13 15:03:37 +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";
|
|
|
|
license = licenses.gpl3Only;
|
|
|
|
maintainers = [ maintainers.Thra11 ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|