2019-06-16 20:59:06 +01:00
|
|
|
{ lib, makeWrapper, symlinkJoin
|
2022-01-25 19:16:18 +00:00
|
|
|
, extraPythonPackages ? (ps: [ ])
|
|
|
|
, libsForQt5
|
2015-10-27 07:26:07 +00:00
|
|
|
}:
|
2019-02-27 21:08:06 +00:00
|
|
|
with lib;
|
2022-01-25 19:16:18 +00:00
|
|
|
let
|
|
|
|
qgis-unwrapped = libsForQt5.callPackage ./unwrapped.nix { };
|
|
|
|
in symlinkJoin rec {
|
|
|
|
|
2019-02-27 21:08:06 +00:00
|
|
|
inherit (qgis-unwrapped) version;
|
|
|
|
name = "qgis-${version}";
|
2008-12-20 01:20:35 +00:00
|
|
|
|
2019-02-27 21:08:06 +00:00
|
|
|
paths = [ qgis-unwrapped ];
|
2009-03-06 23:21:28 +00:00
|
|
|
|
2021-12-07 21:16:04 +00:00
|
|
|
nativeBuildInputs = [ makeWrapper qgis-unwrapped.py.pkgs.wrapPython ];
|
2011-08-11 10:35:17 +01:00
|
|
|
|
2019-02-27 21:08:06 +00:00
|
|
|
# extend to add to the python environment of QGIS without rebuilding QGIS application.
|
2021-12-07 21:16:04 +00:00
|
|
|
pythonInputs = qgis-unwrapped.pythonBuildInputs ++ (extraPythonPackages qgis-unwrapped.py.pkgs);
|
2011-08-11 10:35:17 +01:00
|
|
|
|
2019-02-27 21:08:06 +00:00
|
|
|
postBuild = ''
|
|
|
|
# unpackPhase
|
2013-07-18 10:40:23 +01:00
|
|
|
|
2019-02-27 21:08:06 +00:00
|
|
|
buildPythonPath "$pythonInputs"
|
2018-03-13 09:57:12 +00:00
|
|
|
|
2019-02-27 21:08:06 +00:00
|
|
|
wrapProgram $out/bin/qgis \
|
|
|
|
--prefix PATH : $program_PATH \
|
|
|
|
--set PYTHONPATH $program_PYTHONPATH
|
2013-07-18 10:40:23 +01:00
|
|
|
'';
|
2009-03-06 23:21:28 +00:00
|
|
|
|
2022-01-25 19:16:18 +00:00
|
|
|
passthru.unwrapped = qgis-unwrapped;
|
|
|
|
|
2019-02-27 21:08:06 +00:00
|
|
|
meta = qgis-unwrapped.meta;
|
2008-12-20 01:20:35 +00:00
|
|
|
}
|