From d72755142321ef09125eceb65bfe0264adbd901d Mon Sep 17 00:00:00 2001 From: "Andy Chun @noneucat" Date: Mon, 8 Nov 2021 01:29:36 -0800 Subject: [PATCH 1/2] weylus: add pipewire gst plugins to GST_PLUGIN_PATH Weylus was not picking up the PipeWire GStreamer plugins required for PipeWire functionality. This commit adds the appropriate path to GST_PLUGIN_PATH for the binary. --- pkgs/applications/graphics/weylus/default.nix | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/pkgs/applications/graphics/weylus/default.nix b/pkgs/applications/graphics/weylus/default.nix index 3c408ff5fc81..a06e99fc30a8 100644 --- a/pkgs/applications/graphics/weylus/default.nix +++ b/pkgs/applications/graphics/weylus/default.nix @@ -9,6 +9,8 @@ , copyDesktopItems , fontconfig , libpng +, pipewire +, makeWrapper , autoPatchelfHook }: @@ -38,6 +40,7 @@ stdenv.mkDerivation rec { fontconfig libva gst_all_1.gst-plugins-base + pipewire # autoPatchelfHook complains if these are missing, even on wayland xorg.libXft xorg.libXinerama @@ -47,7 +50,16 @@ stdenv.mkDerivation rec { xorg.libXtst ]; - nativeBuildInputs = [ copyDesktopItems autoPatchelfHook ]; + nativeBuildInputs = [ copyDesktopItems autoPatchelfHook makeWrapper ]; + + postFixup = let + GST_PLUGIN_PATH = lib.makeSearchPathOutput "lib" "lib/gstreamer-1.0" [ + gst_all_1.gst-plugins-base + pipewire + ]; + in '' + wrapProgram $out/bin/weylus --prefix GST_PLUGIN_PATH : ${GST_PLUGIN_PATH} + ''; meta = with lib; { description = "Use your tablet as graphic tablet/touch screen on your computer"; From 45db1b5f38d06607fde4fa006cbc870db2f2ea43 Mon Sep 17 00:00:00 2001 From: "Andy Chun @noneucat" Date: Tue, 30 Nov 2021 13:21:32 -0800 Subject: [PATCH 2/2] weylus: add meta.platforms --- pkgs/applications/graphics/weylus/default.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/pkgs/applications/graphics/weylus/default.nix b/pkgs/applications/graphics/weylus/default.nix index a06e99fc30a8..092366652d4f 100644 --- a/pkgs/applications/graphics/weylus/default.nix +++ b/pkgs/applications/graphics/weylus/default.nix @@ -66,5 +66,6 @@ stdenv.mkDerivation rec { homepage = "https://github.com/H-M-H/Weylus"; license = with licenses; [ agpl3Only ]; maintainers = with maintainers; [ lom ]; + platforms = [ "x86_64-linux" ]; }; }