2024-07-17 03:26:36 +00:00
|
|
|
{ makeWrapper
|
2023-08-28 15:59:16 +00:00
|
|
|
, nixosTests
|
2023-08-26 17:08:59 +00:00
|
|
|
, symlinkJoin
|
|
|
|
|
2022-01-25 19:16:18 +00:00
|
|
|
, extraPythonPackages ? (ps: [ ])
|
2023-08-26 17:08:59 +00:00
|
|
|
|
2022-01-25 19:16:18 +00:00
|
|
|
, libsForQt5
|
2024-10-17 09:40:55 +00:00
|
|
|
|
|
|
|
# unwrapped package parameters
|
2024-10-21 10:03:11 +00:00
|
|
|
, withGrass ? false
|
2024-09-16 10:51:21 +00:00
|
|
|
, withServer ? false
|
2024-10-17 09:40:55 +00:00
|
|
|
, withWebKit ? false
|
2015-10-27 07:26:07 +00:00
|
|
|
}:
|
2022-01-25 19:16:18 +00:00
|
|
|
let
|
2024-10-17 09:40:55 +00:00
|
|
|
qgis-unwrapped = libsForQt5.callPackage ./unwrapped.nix {
|
|
|
|
withGrass = withGrass;
|
2024-09-16 10:51:21 +00:00
|
|
|
withServer = withServer;
|
2024-10-17 09:40:55 +00:00
|
|
|
withWebKit = withWebKit;
|
|
|
|
};
|
2022-01-25 19:16:18 +00:00
|
|
|
in symlinkJoin rec {
|
|
|
|
|
2019-02-27 21:08:06 +00:00
|
|
|
inherit (qgis-unwrapped) version;
|
|
|
|
name = "qgis-${version}";
|
2008-12-20 01:20:35 +00:00
|
|
|
|
2019-02-27 21:08:06 +00:00
|
|
|
paths = [ qgis-unwrapped ];
|
2009-03-06 23:21:28 +00:00
|
|
|
|
2023-08-26 17:08:59 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
makeWrapper
|
|
|
|
qgis-unwrapped.py.pkgs.wrapPython
|
|
|
|
];
|
2011-08-11 09:35:17 +00:00
|
|
|
|
2019-02-27 21:08:06 +00:00
|
|
|
# extend to add to the python environment of QGIS without rebuilding QGIS application.
|
2021-12-07 21:16:04 +00:00
|
|
|
pythonInputs = qgis-unwrapped.pythonBuildInputs ++ (extraPythonPackages qgis-unwrapped.py.pkgs);
|
2011-08-11 09:35:17 +00:00
|
|
|
|
2019-02-27 21:08:06 +00:00
|
|
|
postBuild = ''
|
|
|
|
buildPythonPath "$pythonInputs"
|
2018-03-13 09:57:12 +00:00
|
|
|
|
2024-09-03 20:08:05 +00:00
|
|
|
for program in $out/bin/*; do
|
|
|
|
wrapProgram $program \
|
|
|
|
--prefix PATH : $program_PATH \
|
|
|
|
--set PYTHONPATH $program_PYTHONPATH
|
|
|
|
done
|
2013-07-18 09:40:23 +00:00
|
|
|
'';
|
2009-03-06 23:21:28 +00:00
|
|
|
|
2023-08-28 15:59:16 +00:00
|
|
|
passthru = {
|
|
|
|
unwrapped = qgis-unwrapped;
|
|
|
|
tests.qgis = nixosTests.qgis;
|
|
|
|
};
|
2022-01-25 19:16:18 +00:00
|
|
|
|
2019-02-27 21:08:06 +00:00
|
|
|
meta = qgis-unwrapped.meta;
|
2008-12-20 01:20:35 +00:00
|
|
|
}
|