mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-04 20:13:21 +00:00
ff1a94e523
The nixpkgs-unstable channel's programs.sqlite was used to identify packages producing exactly one binary, and these automatically added to their package definitions wherever possible.
47 lines
1.3 KiB
Nix
47 lines
1.3 KiB
Nix
{ lib, mkDerivation, fetchFromGitHub
|
|
, cmake, qttools, kirigami2, qtquickcontrols2, qtlocation, qtsensors
|
|
, nemo-qml-plugin-dbus, mapbox-gl-qml, s2geometry
|
|
, python3, pyotherside
|
|
}:
|
|
|
|
mkDerivation rec {
|
|
pname = "pure-maps";
|
|
version = "3.3.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "rinigus";
|
|
repo = "pure-maps";
|
|
rev = version;
|
|
hash = "sha256-TeFolD3jXRdLGfXdy+QcwtOcQQVUB5fn8PwoYfRLaPQ=";
|
|
fetchSubmodules = true;
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
cmake python3 qttools python3.pkgs.wrapPython
|
|
];
|
|
|
|
buildInputs = [
|
|
kirigami2 qtquickcontrols2 qtlocation qtsensors
|
|
nemo-qml-plugin-dbus pyotherside mapbox-gl-qml s2geometry
|
|
];
|
|
|
|
cmakeFlags = [ "-DFLAVOR=kirigami" ];
|
|
|
|
pythonPath = with python3.pkgs; [ gpxpy ];
|
|
|
|
preInstall = ''
|
|
buildPythonPath "$pythonPath"
|
|
qtWrapperArgs+=(--prefix PYTHONPATH : "$program_PYTHONPATH")
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Display vector and raster maps, places, routes, and provide navigation instructions with a flexible selection of data and service providers";
|
|
mainProgram = "pure-maps";
|
|
homepage = "https://github.com/rinigus/pure-maps";
|
|
changelog = "https://github.com/rinigus/pure-maps/blob/${src.rev}/NEWS.md";
|
|
license = licenses.gpl3Only;
|
|
maintainers = [ maintainers.Thra11 ];
|
|
platforms = platforms.linux;
|
|
};
|
|
}
|