mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 06:53:01 +00:00
52 lines
1.1 KiB
Nix
52 lines
1.1 KiB
Nix
{ makeWrapper
|
|
, nixosTests
|
|
, symlinkJoin
|
|
|
|
, extraPythonPackages ? (ps: [ ])
|
|
|
|
, libsForQt5
|
|
|
|
# unwrapped package parameters
|
|
, withGrass ? false
|
|
, withServer ? false
|
|
, withWebKit ? false
|
|
}:
|
|
let
|
|
qgis-ltr-unwrapped = libsForQt5.callPackage ./unwrapped-ltr.nix {
|
|
withGrass = withGrass;
|
|
withServer = withServer;
|
|
withWebKit = withWebKit;
|
|
};
|
|
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 = ''
|
|
buildPythonPath "$pythonInputs"
|
|
|
|
for program in $out/bin/*; do
|
|
wrapProgram $program \
|
|
--prefix PATH : $program_PATH \
|
|
--set PYTHONPATH $program_PYTHONPATH
|
|
done
|
|
'';
|
|
|
|
passthru = {
|
|
unwrapped = qgis-ltr-unwrapped;
|
|
tests.qgis-ltr = nixosTests.qgis-ltr;
|
|
};
|
|
|
|
inherit (qgis-ltr-unwrapped) meta;
|
|
}
|