diff options
author | lunik1 <ch.gpg@themaw.xyz> | 2021-04-19 18:51:34 +0100 |
---|---|---|
committer | lunik1 <ch.gpg@themaw.xyz> | 2021-04-20 18:11:19 +0100 |
commit | 388c01875c9e79a9dd54248250704384e98b5771 (patch) | |
tree | 7bb81ca3ff991902247ee2404e8cedd730d2c836 /pkgs/applications/video/mpv | |
parent | 35398a3eb9cd3fb3bd9f4d887aa5f3748f398dc3 (diff) |
mpvScripts.mpv-playlistmanager: init at c15a033 (09-03-2021)
Diffstat (limited to 'pkgs/applications/video/mpv')
-rw-r--r-- | pkgs/applications/video/mpv/scripts/mpv-playlistmanager.nix | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/pkgs/applications/video/mpv/scripts/mpv-playlistmanager.nix b/pkgs/applications/video/mpv/scripts/mpv-playlistmanager.nix new file mode 100644 index 0000000000000..b7e95324f58ea --- /dev/null +++ b/pkgs/applications/video/mpv/scripts/mpv-playlistmanager.nix @@ -0,0 +1,37 @@ +{ lib, stdenvNoCC, fetchFromGitHub, youtube-dl }: + +stdenvNoCC.mkDerivation rec { + pname = "mpv-playlistmanager"; + version = "unstable-2021-03-09"; + + src = fetchFromGitHub { + owner = "jonniek"; + repo = "mpv-playlistmanager"; + rev = "c15a0334cf6d4581882fa31ddb1e6e7f2d937a3e"; + sha256 = "uxcvgcSGS61UU8MmuD6qMRqpIa53iasH/vkg1xY7MVc="; + }; + + postPatch = '' + substituteInPlace playlistmanager.lua \ + --replace "'youtube-dl'" "'${youtube-dl}/bin/youtube-dl'" \ + ''; + + dontBuild = true; + + installPhase = '' + runHook preInstall + mkdir -p $out/share/mpv/scripts + cp playlistmanager.lua $out/share/mpv/scripts + runHook postInstall + ''; + + passthru.scriptName = "playlistmanager.lua"; + + meta = with lib; { + description = "Mpv lua script to create and manage playlists"; + homepage = "https://github.com/jonniek/mpv-playlistmanager"; + license = licenses.unlicense; + platforms = platforms.all; + maintainers = with maintainers; [ lunik1 ]; + }; +} |