bcb2f287e1
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
29 lines
756 B
Nix
29 lines
756 B
Nix
{
|
|
lib,
|
|
buildLua,
|
|
fetchFromGitHub,
|
|
gitUpdater,
|
|
oscSupport ? false,
|
|
}:
|
|
|
|
buildLua rec {
|
|
pname = "mpv-quality-menu";
|
|
version = "4.1.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "christoph-heinrich";
|
|
repo = "mpv-quality-menu";
|
|
rev = "v${version}";
|
|
hash = "sha256-yrcTxqpLnOI1Tq3khhflO3wzhyeTPuvKifyH5/P57Ns=";
|
|
};
|
|
passthru.updateScript = gitUpdater { rev-prefix = "v"; };
|
|
|
|
extraScripts = lib.optional oscSupport "quality-menu-osc.lua";
|
|
|
|
meta = with lib; {
|
|
description = "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 ];
|
|
};
|
|
}
|