mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-18 03:34:58 +00:00
34 lines
806 B
Nix
34 lines
806 B
Nix
{ lib, makeWrapper, symlinkJoin
|
|
, extraPythonPackages ? (ps: [ ])
|
|
, libsForQt5
|
|
}:
|
|
with lib;
|
|
let
|
|
qgis-unwrapped = libsForQt5.callPackage ./unwrapped.nix { };
|
|
in symlinkJoin rec {
|
|
|
|
inherit (qgis-unwrapped) version;
|
|
name = "qgis-${version}";
|
|
|
|
paths = [ qgis-unwrapped ];
|
|
|
|
nativeBuildInputs = [ makeWrapper qgis-unwrapped.py.pkgs.wrapPython ];
|
|
|
|
# extend to add to the python environment of QGIS without rebuilding QGIS application.
|
|
pythonInputs = qgis-unwrapped.pythonBuildInputs ++ (extraPythonPackages qgis-unwrapped.py.pkgs);
|
|
|
|
postBuild = ''
|
|
# unpackPhase
|
|
|
|
buildPythonPath "$pythonInputs"
|
|
|
|
wrapProgram $out/bin/qgis \
|
|
--prefix PATH : $program_PATH \
|
|
--set PYTHONPATH $program_PYTHONPATH
|
|
'';
|
|
|
|
passthru.unwrapped = qgis-unwrapped;
|
|
|
|
meta = qgis-unwrapped.meta;
|
|
}
|