depot/third_party/nixpkgs/pkgs/applications/video/mpv/scripts/quality-menu.nix
Default email e7ec2969af Project import generated by Copybara.
GitOrigin-RevId: 9b19f5e77dd906cb52dade0b7bd280339d2a1f3d
2024-01-13 09:15:51 +01:00

30 lines
757 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 = "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 ];
};
}