1{
2 lib,
3 buildLua,
4 fetchFromGitHub,
5 unstableGitUpdater,
6 yt-dlp,
7}:
8
9buildLua {
10 pname = "mpv-playlistmanager";
11 version = "0-unstable-2025-09-03";
12
13 src = fetchFromGitHub {
14 owner = "jonniek";
15 repo = "mpv-playlistmanager";
16 rev = "b11621e1dc4afd24b41b887aff0748146176c4c1";
17 hash = "sha256-0+ISjWb8aGdRjsFOPURBZzTmJ4X8ayzYfnxYICDmizA=";
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}