at master 29 lines 756 B view raw
1{ 2 lib, 3 buildLua, 4 fetchFromGitHub, 5 gitUpdater, 6 oscSupport ? false, 7}: 8 9buildLua rec { 10 pname = "mpv-quality-menu"; 11 version = "4.2.1"; 12 13 src = fetchFromGitHub { 14 owner = "christoph-heinrich"; 15 repo = "mpv-quality-menu"; 16 rev = "v${version}"; 17 hash = "sha256-W+6OYjh0S7nYrNC/P9sF7t6p1Rt/awOtO865cr6qtR0="; 18 }; 19 passthru.updateScript = gitUpdater { rev-prefix = "v"; }; 20 21 extraScripts = lib.optional oscSupport "quality-menu-osc.lua"; 22 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 }; 29}