diff options
author | Tom Hall <tahall256@protonmail.ch> | 2020-12-28 20:04:09 +0000 |
---|---|---|
committer | Tom Hall <tahall256@protonmail.ch> | 2021-02-23 14:48:31 +0000 |
commit | a3c72e4d7de5c168c5c29af19488e79b02fdaca4 (patch) | |
tree | b724378507141adec92318f590c82601594eaec0 /pkgs/applications/misc/pure-maps | |
parent | e31f16ec8546ba10ccf79b4535443fa4a4421249 (diff) | |
download | nixpkgs-a3c72e4d7de5c168c5c29af19488e79b02fdaca4.tar nixpkgs-a3c72e4d7de5c168c5c29af19488e79b02fdaca4.tar.gz nixpkgs-a3c72e4d7de5c168c5c29af19488e79b02fdaca4.tar.bz2 nixpkgs-a3c72e4d7de5c168c5c29af19488e79b02fdaca4.tar.lz nixpkgs-a3c72e4d7de5c168c5c29af19488e79b02fdaca4.tar.xz nixpkgs-a3c72e4d7de5c168c5c29af19488e79b02fdaca4.tar.zst nixpkgs-a3c72e4d7de5c168c5c29af19488e79b02fdaca4.zip |
pure-maps: init at 2.6.0
Diffstat (limited to 'pkgs/applications/misc/pure-maps')
-rw-r--r-- | pkgs/applications/misc/pure-maps/default.nix | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/pkgs/applications/misc/pure-maps/default.nix b/pkgs/applications/misc/pure-maps/default.nix new file mode 100644 index 00000000000..3ee87d58c08 --- /dev/null +++ b/pkgs/applications/misc/pure-maps/default.nix @@ -0,0 +1,46 @@ +{ lib, mkDerivation, fetchFromGitHub, wrapQtAppsHook +, qmake, qttools, kirigami2, qtquickcontrols2, qtlocation, qtsensors +, nemo-qml-plugin-dbus, mapbox-gl-qml, s2geometry +, python3, pyotherside, python3Packages +}: + +mkDerivation rec { + pname = "pure-maps"; + version = "2.6.0"; + + src = fetchFromGitHub { + owner = "rinigus"; + repo = "pure-maps"; + rev = version; + sha256 = "1nviq2pavyxwh9k4kyzqpbzmx1wybwdax4pyd017izh9h6gqnjhs"; + fetchSubmodules = true; + }; + + nativeBuildInputs = [ qmake python3 qttools wrapQtAppsHook ]; + buildInputs = [ + kirigami2 qtquickcontrols2 qtlocation qtsensors + nemo-qml-plugin-dbus pyotherside mapbox-gl-qml s2geometry + ]; + propagatedBuildInputs = with python3Packages; [ gpxpy pyxdg ]; + + postPatch = '' + substituteInPlace pure-maps.pro \ + --replace '$$[QT_HOST_BINS]/lconvert' 'lconvert' + ''; + + qmakeFlags = [ "FLAVOR=kirigami" ]; + + dontWrapQtApps = true; + postInstall = '' + wrapQtApp $out/bin/pure-maps \ + --prefix PYTHONPATH : "$out/share" + ''; + + 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; + }; +} |