From 95c0d7765209f22de2e10a07f5d202601ec85c25 Mon Sep 17 00:00:00 2001 From: Paul Meyer Date: Mon, 7 Jul 2025 08:25:44 +0200 Subject: [PATCH] sonic-pi: add qtwayland dep Running sonic-pi under wayland/sway, I noticed the following output: ``` qt.qpa.plugin: Could not find the Qt platform plugin "wayland" in "" ``` I couldn't find any functional issue due to this, but looked into it anyway. Adding `qtwayland` dependency resolves this issue, it now prints: ``` qt.qpa.wayland: Wayland does not support QWindow::requestActivate() ``` The dependency on `qtwayland` is documented upstream in https://github.com/sonic-pi-net/sonic-pi/blob/5145973b25a7f21cf94151f5978ba4819550012d/BUILD-LINUX.md?plain=1#L63 Which looks a bit healthier. Not sure if there are other things to improve for wayland support, but this is a start. Signed-off-by: Paul Meyer --- pkgs/applications/audio/sonic-pi/default.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkgs/applications/audio/sonic-pi/default.nix b/pkgs/applications/audio/sonic-pi/default.nix index 221f67badc02..124f3a264389 100644 --- a/pkgs/applications/audio/sonic-pi/default.nix +++ b/pkgs/applications/audio/sonic-pi/default.nix @@ -11,6 +11,7 @@ qtbase, qtsvg, qttools, + qtwayland, qwt, qscintilla, kissfftFloat, @@ -82,6 +83,7 @@ stdenv.mkDerivation rec { qtbase qtsvg qttools + qtwayland qwt qscintilla kissfftFloat