mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-22 13:43:22 +00:00
f3282c8d1e
* treewide: remove unused variables * making ofborg happy
28 lines
713 B
Nix
28 lines
713 B
Nix
{ lib, makeWrapper, symlinkJoin
|
|
, qgis-unwrapped, extraPythonPackages ? (ps: [ ])
|
|
}:
|
|
with lib;
|
|
symlinkJoin rec {
|
|
inherit (qgis-unwrapped) version;
|
|
name = "qgis-${version}";
|
|
|
|
paths = [ qgis-unwrapped ];
|
|
|
|
nativeBuildInputs = [ makeWrapper qgis-unwrapped.python3Packages.wrapPython ];
|
|
|
|
# extend to add to the python environment of QGIS without rebuilding QGIS application.
|
|
pythonInputs = qgis-unwrapped.pythonBuildInputs ++ (extraPythonPackages qgis-unwrapped.python3Packages);
|
|
|
|
postBuild = ''
|
|
# unpackPhase
|
|
|
|
buildPythonPath "$pythonInputs"
|
|
|
|
wrapProgram $out/bin/qgis \
|
|
--prefix PATH : $program_PATH \
|
|
--set PYTHONPATH $program_PYTHONPATH
|
|
'';
|
|
|
|
meta = qgis-unwrapped.meta;
|
|
}
|