summary refs log tree commit diff
path: root/pkgs/applications/graphics/weylus/default.nix
diff options
context:
space:
mode:
authorAndy Chun @noneucat <andy@lolc.at>2021-11-08 01:29:36 -0800
committerAndy Chun @noneucat <andy@lolc.at>2021-12-16 12:43:31 -0800
commitd72755142321ef09125eceb65bfe0264adbd901d (patch)
tree8a854765682ce4f5bf100d310502001689914c3b /pkgs/applications/graphics/weylus/default.nix
parent988b006652156f21a0dfd47833ba3610e6200d55 (diff)
downloadnixpkgs-d72755142321ef09125eceb65bfe0264adbd901d.tar
nixpkgs-d72755142321ef09125eceb65bfe0264adbd901d.tar.gz
nixpkgs-d72755142321ef09125eceb65bfe0264adbd901d.tar.bz2
nixpkgs-d72755142321ef09125eceb65bfe0264adbd901d.tar.lz
nixpkgs-d72755142321ef09125eceb65bfe0264adbd901d.tar.xz
nixpkgs-d72755142321ef09125eceb65bfe0264adbd901d.tar.zst
nixpkgs-d72755142321ef09125eceb65bfe0264adbd901d.zip
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.
Diffstat (limited to 'pkgs/applications/graphics/weylus/default.nix')
-rw-r--r--pkgs/applications/graphics/weylus/default.nix14
1 files changed, 13 insertions, 1 deletions
diff --git a/pkgs/applications/graphics/weylus/default.nix b/pkgs/applications/graphics/weylus/default.nix
index 3c408ff5fc8..a06e99fc30a 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";