mpvScripts.youtube-quality: init at unstable-2020-02-11 (#125284)

Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
This commit is contained in:
lunik1 2021-06-05 15:44:12 +01:00 committed by GitHub
parent acc7bd6649
commit 13e7b38ac1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 40 additions and 0 deletions

View File

@ -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 ];
};
}

View File

@ -25322,6 +25322,7 @@ in
simple-mpv-webui = callPackage ../applications/video/mpv/scripts/simple-mpv-webui.nix {};
sponsorblock = callPackage ../applications/video/mpv/scripts/sponsorblock.nix {};
thumbnail = callPackage ../applications/video/mpv/scripts/thumbnail.nix { };
youtube-quality = callPackage ../applications/video/mpv/scripts/youtube-quality.nix { };
};
mrpeach = callPackage ../applications/audio/pd-plugins/mrpeach { };