5e7c2d6cef
GitOrigin-RevId: f99e5f03cc0aa231ab5950a15ed02afec45ed51a
43 lines
870 B
Nix
43 lines
870 B
Nix
{ lib
|
|
, makeWrapper
|
|
, nixosTests
|
|
, symlinkJoin
|
|
|
|
, extraPythonPackages ? (ps: [ ])
|
|
|
|
, libsForQt5
|
|
}:
|
|
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;
|
|
tests.qgis = nixosTests.qgis;
|
|
};
|
|
|
|
meta = qgis-unwrapped.meta;
|
|
}
|