nixpkgs/pkgs/applications/gis/qgis/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

52 lines
1.0 KiB
Nix
Raw Normal View History

{ makeWrapper
, nixosTests
, symlinkJoin
, extraPythonPackages ? (ps: [ ])
, libsForQt5
# unwrapped package parameters
, withGrass ? false
2024-09-16 10:51:21 +00:00
, withServer ? false
, withWebKit ? false
2015-10-27 07:26:07 +00:00
}:
let
qgis-unwrapped = libsForQt5.callPackage ./unwrapped.nix {
withGrass = withGrass;
2024-09-16 10:51:21 +00:00
withServer = withServer;
withWebKit = withWebKit;
};
in symlinkJoin rec {
2019-02-27 21:08:06 +00:00
inherit (qgis-unwrapped) version;
name = "qgis-${version}";
2019-02-27 21:08:06 +00:00
paths = [ qgis-unwrapped ];
nativeBuildInputs = [
makeWrapper
qgis-unwrapped.py.pkgs.wrapPython
];
2019-02-27 21:08:06 +00:00
# extend to add to the python environment of QGIS without rebuilding QGIS application.
pythonInputs = qgis-unwrapped.pythonBuildInputs ++ (extraPythonPackages qgis-unwrapped.py.pkgs);
2019-02-27 21:08:06 +00:00
postBuild = ''
buildPythonPath "$pythonInputs"
for program in $out/bin/*; do
wrapProgram $program \
--prefix PATH : $program_PATH \
--set PYTHONPATH $program_PYTHONPATH
done
'';
passthru = {
unwrapped = qgis-unwrapped;
tests.qgis = nixosTests.qgis;
};
2019-02-27 21:08:06 +00:00
meta = qgis-unwrapped.meta;
}