mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-04 04:46:43 +00:00
ff1a94e523
The nixpkgs-unstable channel's programs.sqlite was used to identify packages producing exactly one binary, and these automatically added to their package definitions wherever possible.
59 lines
978 B
Nix
59 lines
978 B
Nix
{ lib
|
|
, mkDerivation
|
|
, extra-cmake-modules
|
|
, wrapGAppsHook
|
|
, gst_all_1
|
|
, kcoreaddons
|
|
, kdeclarative
|
|
, ki18n
|
|
, kirigami2
|
|
, mpv
|
|
, qtmultimedia
|
|
, qtquickcontrols2
|
|
, yt-dlp
|
|
}:
|
|
|
|
mkDerivation {
|
|
pname = "plasmatube";
|
|
|
|
nativeBuildInputs = [
|
|
extra-cmake-modules
|
|
wrapGAppsHook
|
|
];
|
|
|
|
buildInputs = [
|
|
kcoreaddons
|
|
kdeclarative
|
|
ki18n
|
|
kirigami2
|
|
mpv
|
|
qtmultimedia
|
|
qtquickcontrols2
|
|
] ++ (with gst_all_1; [
|
|
gst-plugins-bad
|
|
gst-plugins-base
|
|
gst-plugins-good
|
|
gstreamer
|
|
]);
|
|
|
|
qtWrapperArgs = [
|
|
"--prefix"
|
|
"PATH"
|
|
":"
|
|
(lib.makeBinPath [ yt-dlp ])
|
|
];
|
|
|
|
preFixup = ''
|
|
qtWrapperArgs+=("''${gappsWrapperArgs[@]}")
|
|
'';
|
|
dontWrapGApps = true;
|
|
|
|
meta = {
|
|
description = "Youtube player powered by an invidious server";
|
|
mainProgram = "plasmatube";
|
|
homepage = "https://invent.kde.org/plasma-mobile/plasmatube";
|
|
license = lib.licenses.gpl3Plus;
|
|
maintainers = with lib.maintainers; [ dotlambda ];
|
|
};
|
|
}
|