From acc4cfd48b3bf17b50a8394ea0d6a12c6fc11b2a Mon Sep 17 00:00:00 2001 From: Maximilian Bosch Date: Mon, 24 Jul 2023 14:56:50 +0200 Subject: 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 --- pkgs/applications/backup/vorta/default.nix | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'pkgs/applications') diff --git a/pkgs/applications/backup/vorta/default.nix b/pkgs/applications/backup/vorta/default.nix index 8c8d399d7d8bc..7870b3c11ee68 100644 --- a/pkgs/applications/backup/vorta/default.nix +++ b/pkgs/applications/backup/vorta/default.nix @@ -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 = '' -- cgit 1.4.1