about summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authorSamuel Dionne-Riel <samuel@dionne-riel.com>2022-11-30 22:07:32 -0500
committerSamuel Dionne-Riel <samuel@dionne-riel.com>2022-11-30 22:28:29 -0500
commit4b8a04a32bf837f86e7ffdfaed02eadfd77471bc (patch)
tree30a7533b6c849b7795b6f7e37bf53f06a29436fa /pkgs
parent491064f1e5f1791521d6b6d06b4167ae6ca88003 (diff)
plasmatube: Add gst wrapping to fix playback
Videos now start as one would expect...
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/applications/plasma-mobile/plasmatube/default.nix7
1 files changed, 7 insertions, 0 deletions
diff --git a/pkgs/applications/plasma-mobile/plasmatube/default.nix b/pkgs/applications/plasma-mobile/plasmatube/default.nix
index 6e3377911f348..81041b22931dc 100644
--- a/pkgs/applications/plasma-mobile/plasmatube/default.nix
+++ b/pkgs/applications/plasma-mobile/plasmatube/default.nix
@@ -2,6 +2,7 @@
 , mkDerivation
 , cmake
 , extra-cmake-modules
+, wrapGAppsHook
 , gst_all_1
 , kcoreaddons
 , kdeclarative
@@ -17,6 +18,7 @@ mkDerivation {
 
   nativeBuildInputs = [
     extra-cmake-modules
+    wrapGAppsHook
   ];
 
   buildInputs = [
@@ -42,6 +44,11 @@ mkDerivation {
       --replace "@yt-dlp@" "${yt-dlp}/bin/yt-dlp"
   '';
 
+  preFixup = ''
+    qtWrapperArgs+=("''${gappsWrapperArgs[@]}")
+  '';
+  dontWrapGApps = true;
+
   meta = {
     description = "Youtube player powered by an invidious server";
     homepage = "https://invent.kde.org/plasma-mobile/plasmatube";