2019-06-16 20:59:06 +01:00
|
|
|
{ lib, makeWrapper, symlinkJoin
|
2019-02-27 21:08:06 +00:00
|
|
|
, qgis-unwrapped, extraPythonPackages ? (ps: [ ])
|
2015-10-27 07:26:07 +00:00
|
|
|
}:
|
2019-02-27 21:08:06 +00:00
|
|
|
with lib;
|
|
|
|
symlinkJoin rec {
|
|
|
|
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
|
|
|
|
2019-02-27 21:08:06 +00:00
|
|
|
nativeBuildInputs = [ makeWrapper qgis-unwrapped.python3Packages.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.
|
|
|
|
pythonInputs = qgis-unwrapped.pythonBuildInputs ++ (extraPythonPackages qgis-unwrapped.python3Packages);
|
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
|
|
|
|
2019-02-27 21:08:06 +00:00
|
|
|
meta = qgis-unwrapped.meta;
|
2008-12-20 01:20:35 +00:00
|
|
|
}
|