diff options
author | lunik1 <13547699+lunik1@users.noreply.github.com> | 2021-06-05 15:44:12 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-05 16:44:12 +0200 |
commit | 13e7b38ac14dd86ebadf37a1c2c4dde94a5a3ce6 (patch) | |
tree | a299d1d63f303aa4d768d237c688e4f2c9add669 /pkgs/applications/video/mpv | |
parent | acc7bd664982e371dea4e236059e5b55532a9fc4 (diff) |
mpvScripts.youtube-quality: init at unstable-2020-02-11 (#125284)
Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
Diffstat (limited to 'pkgs/applications/video/mpv')
-rw-r--r-- | pkgs/applications/video/mpv/scripts/youtube-quality.nix | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/pkgs/applications/video/mpv/scripts/youtube-quality.nix b/pkgs/applications/video/mpv/scripts/youtube-quality.nix new file mode 100644 index 0000000000000..3c55a36d0a796 --- /dev/null +++ b/pkgs/applications/video/mpv/scripts/youtube-quality.nix @@ -0,0 +1,39 @@ +{ lib +, stdenvNoCC +, fetchFromGitHub +, oscSupport ? false +}: + +stdenvNoCC.mkDerivation rec { + pname = "mpv-playlistmanager"; + version = "unstable-2020-02-11"; + + src = fetchFromGitHub { + owner = "jgreco"; + repo = "mpv-youtube-quality"; + rev = "1f8c31457459ffc28cd1c3f3c2235a53efad7148"; + sha256 = "voNP8tCwCv8QnAZOPC9gqHRV/7jgCAE63VKBd/1s5ic="; + }; + + dontBuild = true; + + installPhase = '' + runHook preInstall + mkdir -p $out/share/mpv/scripts + cp youtube-quality.lua $out/share/mpv/scripts + '' + lib.optionalString oscSupport '' + cp youtube-quality-osc.lua $out/share/mpv/scripts + '' + '' + runHook postInstall + ''; + + passthru.scriptName = "youtube-quality.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/jgreco/mpv-youtube-quality"; + license = licenses.unfree; + platforms = platforms.all; + maintainers = with maintainers; [ lunik1 ]; + }; +} |