vorta: strip away output dependency on qt5.qtwayland.dev

`propagatedBuildInputs` is only required in this case to correctly build
the `PYTHONPATH` for the final application. The QT hook doesn't need
`qtwayland` in `propagatedBuildInputs`, `buildInputs` is sufficient for
it to work.

Additionally, this causes a closure-size reduction of ~22.5% because we
get rid of the dependency to the `dev` output of `qtwayland`:

    $ nix path-info -Sh ./result-old
    /nix/store/i8i4p2i3wkjv4y95pp3i421nwg0f1shh-vorta-0.8.12	775.2M
    $ nix path-info -Sh ./result-new
    /nix/store/jcyrkk89my2lh00z7dy8z19xyvlf8yhr-vorta-0.8.12	599.5M
This commit is contained in:
Maximilian Bosch 2023-07-24 14:56:50 +02:00
parent f18b8ec8c6
commit acc4cfd48b
No known key found for this signature in database
GPG Key ID: 9A6EEA275CA5BE0A

View File

@ -4,6 +4,7 @@
, wrapQtAppsHook
, borgbackup
, qt5
, stdenv
}:
python3Packages.buildPythonApplication rec {
@ -19,6 +20,10 @@ python3Packages.buildPythonApplication rec {
nativeBuildInputs = [ wrapQtAppsHook ];
buildInputs = lib.optionals stdenv.isLinux [
qt5.qtwayland
];
propagatedBuildInputs = with python3Packages; [
peewee
pyqt5
@ -29,8 +34,6 @@ python3Packages.buildPythonApplication rec {
appdirs
setuptools
platformdirs
] ++ lib.optionals stdenv.isLinux [
qt5.qtwayland
];
postPatch = ''