2022-05-18 14:49:53 +00:00
|
|
|
{ lib
|
|
|
|
, mkDerivation
|
|
|
|
, extra-cmake-modules
|
2022-12-28 21:21:41 +00:00
|
|
|
, wrapGAppsHook
|
2022-05-18 14:49:53 +00:00
|
|
|
, gst_all_1
|
|
|
|
, kcoreaddons
|
|
|
|
, kdeclarative
|
|
|
|
, ki18n
|
|
|
|
, kirigami2
|
2023-02-09 11:40:11 +00:00
|
|
|
, mpv
|
2022-05-18 14:49:53 +00:00
|
|
|
, qtmultimedia
|
|
|
|
, qtquickcontrols2
|
2023-07-15 17:15:38 +00:00
|
|
|
, yt-dlp
|
2022-05-18 14:49:53 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
mkDerivation {
|
|
|
|
pname = "plasmatube";
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
extra-cmake-modules
|
2022-12-28 21:21:41 +00:00
|
|
|
wrapGAppsHook
|
2022-05-18 14:49:53 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
kcoreaddons
|
|
|
|
kdeclarative
|
|
|
|
ki18n
|
|
|
|
kirigami2
|
2023-02-09 11:40:11 +00:00
|
|
|
mpv
|
2022-05-18 14:49:53 +00:00
|
|
|
qtmultimedia
|
|
|
|
qtquickcontrols2
|
|
|
|
] ++ (with gst_all_1; [
|
|
|
|
gst-plugins-bad
|
|
|
|
gst-plugins-base
|
|
|
|
gst-plugins-good
|
|
|
|
gstreamer
|
|
|
|
]);
|
|
|
|
|
2023-07-15 17:15:38 +00:00
|
|
|
qtWrapperArgs = [
|
|
|
|
"--prefix"
|
|
|
|
"PATH"
|
|
|
|
":"
|
|
|
|
(lib.makeBinPath [ yt-dlp ])
|
|
|
|
];
|
|
|
|
|
2022-12-28 21:21:41 +00:00
|
|
|
preFixup = ''
|
|
|
|
qtWrapperArgs+=("''${gappsWrapperArgs[@]}")
|
|
|
|
'';
|
|
|
|
dontWrapGApps = true;
|
|
|
|
|
2022-05-18 14:49:53 +00:00
|
|
|
meta = {
|
|
|
|
description = "Youtube player powered by an invidious server";
|
|
|
|
homepage = "https://invent.kde.org/plasma-mobile/plasmatube";
|
|
|
|
license = lib.licenses.gpl3Plus;
|
|
|
|
maintainers = with lib.maintainers; [ dotlambda ];
|
|
|
|
};
|
|
|
|
}
|