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.
This commit is contained in:
parent
988b006652
commit
d727551423
1 changed files with 13 additions and 1 deletions
|
@ -9,6 +9,8 @@
|
||||||
, copyDesktopItems
|
, copyDesktopItems
|
||||||
, fontconfig
|
, fontconfig
|
||||||
, libpng
|
, libpng
|
||||||
|
, pipewire
|
||||||
|
, makeWrapper
|
||||||
, autoPatchelfHook
|
, autoPatchelfHook
|
||||||
}:
|
}:
|
||||||
|
|
||||||
|
@ -38,6 +40,7 @@ stdenv.mkDerivation rec {
|
||||||
fontconfig
|
fontconfig
|
||||||
libva
|
libva
|
||||||
gst_all_1.gst-plugins-base
|
gst_all_1.gst-plugins-base
|
||||||
|
pipewire
|
||||||
# autoPatchelfHook complains if these are missing, even on wayland
|
# autoPatchelfHook complains if these are missing, even on wayland
|
||||||
xorg.libXft
|
xorg.libXft
|
||||||
xorg.libXinerama
|
xorg.libXinerama
|
||||||
|
@ -47,7 +50,16 @@ stdenv.mkDerivation rec {
|
||||||
xorg.libXtst
|
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; {
|
meta = with lib; {
|
||||||
description = "Use your tablet as graphic tablet/touch screen on your computer";
|
description = "Use your tablet as graphic tablet/touch screen on your computer";
|
||||||
|
|
Loading…
Reference in a new issue