1 { lib, buildLua, fetchFromGitea, unstableGitUpdater, curl, coreutils }:
4 pname = "mpv_sponsorblock_minimal";
5 version = "unstable-2023-08-20";
6 scriptPath = "sponsorblock_minimal.lua";
9 domain = "codeberg.org";
11 repo = "mpv_sponsorblock_minimal";
12 rev = "ca2844b8cf7674bfccd282d389a50427742251d3";
13 hash = "sha256-28HWZ6nOhKiE+5Ya1N3Vscd8aeH9OKS0t72e/xPfFQQ=";
15 passthru.updateScript = unstableGitUpdater { };
18 substituteInPlace sponsorblock_minimal.lua \
19 --replace-fail "curl" "${lib.getExe curl}" \
20 --replace-fail "sha256sum" "${lib.getExe' coreutils "sha256sum"}"
25 "A minimal script to skip sponsored segments of YouTube videos";
26 homepage = "https://codeberg.org/jouni/mpv_sponsorblock_minimal";
27 license = licenses.gpl3Only;
28 platforms = platforms.all;
29 maintainers = with maintainers; [ arthsmn ];