biglybt: 3.5.0.0 -> 3.6.0.0
[NixPkgs.git] / pkgs / applications / video / mpv / scripts / quality-menu.nix
blobc75e8106871326bd0052eb251bfc43a9de04afac
1 { lib
2 , buildLua
3 , fetchFromGitHub
4 , gitUpdater
5 , oscSupport ? false
6 }:
8 buildLua rec {
9   pname = "mpv-quality-menu";
10   version = "4.1.1";
12   src = fetchFromGitHub {
13     owner = "christoph-heinrich";
14     repo = "mpv-quality-menu";
15     rev = "v${version}";
16     hash = "sha256-yrcTxqpLnOI1Tq3khhflO3wzhyeTPuvKifyH5/P57Ns=";
17   };
18   passthru.updateScript = gitUpdater {
19     rev-prefix = "v";
20   };
22   extraScripts = lib.optional oscSupport "quality-menu-osc.lua";
24   meta = with lib; {
25     description = "A userscript for MPV that allows you to change youtube video quality (ytdl-format) on the fly";
26     homepage = "https://github.com/christoph-heinrich/mpv-quality-menu";
27     license = licenses.gpl2Only;
28     maintainers = with maintainers; [ lunik1 ];
29   };