lol
1{
2 lib,
3 buildLua,
4 fetchFromGitHub,
5 unstableGitUpdater,
6 yt-dlp,
7}:
8
9buildLua rec {
10 pname = "mpv-playlistmanager";
11 version = "0-unstable-2024-02-26";
12
13 src = fetchFromGitHub {
14 owner = "jonniek";
15 repo = "mpv-playlistmanager";
16 rev = "1911dc053951169c98cfcfd9f44ef87d9122ca80";
17 hash = "sha256-pcdOMhkivLF5B86aNuHrqj77DuYLAFGlwFwY7jxkDkE=";
18 };
19 passthru.updateScript = unstableGitUpdater { };
20
21 postPatch = ''
22 substituteInPlace playlistmanager.lua \
23 --replace-fail 'youtube_dl_executable = "yt-dlp",' \
24 'youtube_dl_executable = "${lib.getExe yt-dlp}"',
25 '';
26
27 meta = with lib; {
28 description = "Mpv lua script to create and manage playlists";
29 homepage = "https://github.com/jonniek/mpv-playlistmanager";
30 license = licenses.unlicense;
31 maintainers = with maintainers; [ lunik1 ];
32 };
33}