2021-12-07 22:16:04 +01:00
|
|
|
{ lib, makeWrapper, symlinkJoin
|
2022-01-25 20:16:18 +01:00
|
|
|
, extraPythonPackages ? (ps: [ ])
|
|
|
|
, libsForQt5
|
2021-12-07 22:16:04 +01:00
|
|
|
}:
|
|
|
|
with lib;
|
2022-01-25 20:16:18 +01:00
|
|
|
let
|
|
|
|
qgis-ltr-unwrapped = libsForQt5.callPackage ./unwrapped-ltr.nix { };
|
|
|
|
in symlinkJoin rec {
|
|
|
|
|
2021-12-07 22:16:04 +01:00
|
|
|
inherit (qgis-ltr-unwrapped) version;
|
|
|
|
name = "qgis-${version}";
|
|
|
|
|
|
|
|
paths = [ qgis-ltr-unwrapped ];
|
|
|
|
|
|
|
|
nativeBuildInputs = [ makeWrapper qgis-ltr-unwrapped.py.pkgs.wrapPython ];
|
|
|
|
|
|
|
|
# extend to add to the python environment of QGIS without rebuilding QGIS application.
|
|
|
|
pythonInputs = qgis-ltr-unwrapped.pythonBuildInputs ++ (extraPythonPackages qgis-ltr-unwrapped.py.pkgs);
|
|
|
|
|
|
|
|
postBuild = ''
|
2023-04-04 14:48:59 +02:00
|
|
|
# unpackPhase
|
2021-12-07 22:16:04 +01:00
|
|
|
|
|
|
|
buildPythonPath "$pythonInputs"
|
|
|
|
|
|
|
|
wrapProgram $out/bin/qgis \
|
|
|
|
--prefix PATH : $program_PATH \
|
|
|
|
--set PYTHONPATH $program_PYTHONPATH
|
|
|
|
'';
|
|
|
|
|
2022-01-25 20:16:18 +01:00
|
|
|
passthru.unwrapped = qgis-ltr-unwrapped;
|
|
|
|
|
2021-12-07 22:16:04 +01:00
|
|
|
inherit (qgis-ltr-unwrapped) meta;
|
|
|
|
}
|