2024-05-15 15:35:15 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildLua,
|
|
|
|
fetchFromGitHub,
|
|
|
|
gitUpdater,
|
|
|
|
oscSupport ? false,
|
2023-07-15 17:15:38 +00:00
|
|
|
}:
|
|
|
|
|
2023-11-16 04:20:00 +00:00
|
|
|
buildLua rec {
|
2023-07-15 17:15:38 +00:00
|
|
|
pname = "mpv-quality-menu";
|
2023-11-16 04:20:00 +00:00
|
|
|
version = "4.1.1";
|
2023-07-15 17:15:38 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "christoph-heinrich";
|
|
|
|
repo = "mpv-quality-menu";
|
|
|
|
rev = "v${version}";
|
2023-11-16 04:20:00 +00:00
|
|
|
hash = "sha256-yrcTxqpLnOI1Tq3khhflO3wzhyeTPuvKifyH5/P57Ns=";
|
2023-07-15 17:15:38 +00:00
|
|
|
};
|
2024-05-15 15:35:15 +00:00
|
|
|
passthru.updateScript = gitUpdater { rev-prefix = "v"; };
|
2023-07-15 17:15:38 +00:00
|
|
|
|
2024-01-02 11:29:13 +00:00
|
|
|
extraScripts = lib.optional oscSupport "quality-menu-osc.lua";
|
2023-07-15 17:15:38 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Userscript for MPV that allows you to change youtube video quality (ytdl-format) on the fly";
|
2023-07-15 17:15:38 +00:00
|
|
|
homepage = "https://github.com/christoph-heinrich/mpv-quality-menu";
|
|
|
|
license = licenses.gpl2Only;
|
|
|
|
maintainers = with maintainers; [ lunik1 ];
|
|
|
|
};
|
|
|
|
}
|