2023-07-15 17:15:38 +00:00
|
|
|
{ lib
|
2023-11-16 04:20:00 +00:00
|
|
|
, buildLua
|
2023-07-15 17:15:38 +00:00
|
|
|
, fetchFromGitHub
|
2024-01-13 08:15:51 +00:00
|
|
|
, gitUpdater
|
2023-07-15 17:15:38 +00:00
|
|
|
, oscSupport ? false
|
|
|
|
}:
|
|
|
|
|
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-01-13 08:15:51 +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; {
|
|
|
|
description = "A userscript for MPV that allows you to change youtube video quality (ytdl-format) on the fly";
|
|
|
|
homepage = "https://github.com/christoph-heinrich/mpv-quality-menu";
|
|
|
|
license = licenses.gpl2Only;
|
|
|
|
maintainers = with maintainers; [ lunik1 ];
|
|
|
|
};
|
|
|
|
}
|