From ae4fd669e4a5be2038fde3519dce1d79f450be0c Mon Sep 17 00:00:00 2001 From: rewine Date: Mon, 11 Mar 2024 00:34:35 +0800 Subject: [PATCH] qt6.wrapQtAppsHook: add `qtwayland` to `propagatedBuildInputs` qtwayland client side is the wayland platform plugin, provides a way to run Qt applications as Wayland clients without this, Qt applications only work on x11/xwayland Co-authored-by: Artturin --- pkgs/development/libraries/qt-6/default.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkgs/development/libraries/qt-6/default.nix b/pkgs/development/libraries/qt-6/default.nix index d306c3e430da..036b4d6eea70 100644 --- a/pkgs/development/libraries/qt-6/default.nix +++ b/pkgs/development/libraries/qt-6/default.nix @@ -164,10 +164,11 @@ let qtwebview = callPackage ./modules/qtwebview.nix { }; wrapQtAppsHook = callPackage - ({ makeBinaryWrapper }: makeSetupHook + ({ makeBinaryWrapper, qtwayland }: makeSetupHook { name = "wrap-qt6-apps-hook"; propagatedBuildInputs = [ makeBinaryWrapper ]; + depsTargetTargetPropagated = lib.optionals stdenv.isLinux [ qtwayland.out ]; } ./hooks/wrap-qt-apps-hook.sh) { };