about summary refs log tree commit diff
path: root/pkgs/applications/backup
diff options
context:
space:
mode:
authorMaximilian Bosch <maximilian@mbosch.me>2023-07-24 14:56:50 +0200
committerMaximilian Bosch <maximilian@mbosch.me>2023-07-24 17:26:37 +0200
commitacc4cfd48b3bf17b50a8394ea0d6a12c6fc11b2a (patch)
tree706bbc75f4cb69cdb05f61cc0df648d1fbab9c71 /pkgs/applications/backup
parentf18b8ec8c6924dc8395b0d865420f5dfe5d9fd9e (diff)
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
Diffstat (limited to 'pkgs/applications/backup')
-rw-r--r--pkgs/applications/backup/vorta/default.nix7
1 files changed, 5 insertions, 2 deletions
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 = ''