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