plasmatube: Add gst wrapping to fix playback

Videos now start as one would expect...
This commit is contained in:
Samuel Dionne-Riel 2022-11-30 22:07:32 -05:00
parent 491064f1e5
commit 4b8a04a32b

View file

@ -2,6 +2,7 @@
, mkDerivation , mkDerivation
, cmake , cmake
, extra-cmake-modules , extra-cmake-modules
, wrapGAppsHook
, gst_all_1 , gst_all_1
, kcoreaddons , kcoreaddons
, kdeclarative , kdeclarative
@ -17,6 +18,7 @@ mkDerivation {
nativeBuildInputs = [ nativeBuildInputs = [
extra-cmake-modules extra-cmake-modules
wrapGAppsHook
]; ];
buildInputs = [ buildInputs = [
@ -42,6 +44,11 @@ mkDerivation {
--replace "@yt-dlp@" "${yt-dlp}/bin/yt-dlp" --replace "@yt-dlp@" "${yt-dlp}/bin/yt-dlp"
''; '';
preFixup = ''
qtWrapperArgs+=("''${gappsWrapperArgs[@]}")
'';
dontWrapGApps = true;
meta = { meta = {
description = "Youtube player powered by an invidious server"; description = "Youtube player powered by an invidious server";
homepage = "https://invent.kde.org/plasma-mobile/plasmatube"; homepage = "https://invent.kde.org/plasma-mobile/plasmatube";