Merge pull request #117045 from dotlambda/pure-maps-fix

pure-maps: fix
This commit is contained in:
Robert Schütz 2021-03-25 12:04:17 +01:00 committed by GitHub
commit 08d3f9aa07
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,7 +1,7 @@
{ lib, mkDerivation, fetchFromGitHub, wrapQtAppsHook { lib, mkDerivation, fetchFromGitHub
, qmake, qttools, kirigami2, qtquickcontrols2, qtlocation, qtsensors , qmake, qttools, kirigami2, qtquickcontrols2, qtlocation, qtsensors
, nemo-qml-plugin-dbus, mapbox-gl-qml, s2geometry , nemo-qml-plugin-dbus, mapbox-gl-qml, s2geometry
, python3, pyotherside, python3Packages , python3, pyotherside
}: }:
mkDerivation rec { mkDerivation rec {
@ -16,12 +16,14 @@ mkDerivation rec {
fetchSubmodules = true; fetchSubmodules = true;
}; };
nativeBuildInputs = [ qmake python3 qttools wrapQtAppsHook ]; nativeBuildInputs = [
qmake python3 qttools python3.pkgs.wrapPython
];
buildInputs = [ buildInputs = [
kirigami2 qtquickcontrols2 qtlocation qtsensors kirigami2 qtquickcontrols2 qtlocation qtsensors
nemo-qml-plugin-dbus pyotherside mapbox-gl-qml s2geometry nemo-qml-plugin-dbus pyotherside mapbox-gl-qml s2geometry
]; ];
propagatedBuildInputs = with python3Packages; [ gpxpy pyxdg ];
postPatch = '' postPatch = ''
substituteInPlace pure-maps.pro \ substituteInPlace pure-maps.pro \
@ -30,10 +32,11 @@ mkDerivation rec {
qmakeFlags = [ "FLAVOR=kirigami" ]; qmakeFlags = [ "FLAVOR=kirigami" ];
dontWrapQtApps = true; pythonPath = with python3.pkgs; [ gpxpy ];
postInstall = ''
wrapQtApp $out/bin/pure-maps \ preInstall = ''
--prefix PYTHONPATH : "$out/share" buildPythonPath "$pythonPath"
qtWrapperArgs+=(--prefix PYTHONPATH : "$program_PYTHONPATH")
''; '';
meta = with lib; { meta = with lib; {