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