pygame-sdl2: 2.1.0 -> 8.3.1.24090601; modernize derivation (#374642)
[NixPkgs.git] / pkgs / applications / video / mpv / scripts / quality-menu.nix
blob8cee576a579272ba4cf71d2360949360a43a6af6
2   lib,
3   buildLua,
4   fetchFromGitHub,
5   gitUpdater,
6   oscSupport ? false,
7 }:
9 buildLua rec {
10   pname = "mpv-quality-menu";
11   version = "4.2.0";
13   src = fetchFromGitHub {
14     owner = "christoph-heinrich";
15     repo = "mpv-quality-menu";
16     rev = "v${version}";
17     hash = "sha256-uaU4W72P7zhHzxmfr59icCAl1mJ3ycLGzkGcYasHllI=";
18   };
19   passthru.updateScript = gitUpdater { rev-prefix = "v"; };
21   extraScripts = lib.optional oscSupport "quality-menu-osc.lua";
23   meta = with lib; {
24     description = "Userscript for MPV that allows you to change youtube video quality (ytdl-format) on the fly";
25     homepage = "https://github.com/christoph-heinrich/mpv-quality-menu";
26     license = licenses.gpl2Only;
27     maintainers = with maintainers; [ lunik1 ];
28   };