diff options
Diffstat (limited to 'nixpkgs/pkgs/applications/video/mpv/scripts/quality-menu.nix')
-rw-r--r-- | nixpkgs/pkgs/applications/video/mpv/scripts/quality-menu.nix | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/applications/video/mpv/scripts/quality-menu.nix b/nixpkgs/pkgs/applications/video/mpv/scripts/quality-menu.nix new file mode 100644 index 000000000000..e4d82d17ca39 --- /dev/null +++ b/nixpkgs/pkgs/applications/video/mpv/scripts/quality-menu.nix @@ -0,0 +1,27 @@ +{ lib +, buildLua +, fetchFromGitHub +, 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="; + }; + + scriptPath = "quality-menu.lua"; + extraScripts = lib.optional oscSupport "quality-menu-osc.lua"; + + 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 ]; + }; +} |