blob: f7f8049cbba33f083909b4724fead22b2f4fc0bd (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
{ lib
, buildLua
, fetchFromGitea
, curl
}:
buildLua {
pname = "mpv_sponsorblock_minimal";
version = "unstable-2023-08-20";
scriptPath = "sponsorblock_minimal.lua";
src = fetchFromGitea {
domain = "codeberg.org";
owner = "jouni";
repo = "mpv_sponsorblock_minimal";
rev = "ca2844b8cf7674bfccd282d389a50427742251d3";
hash = "sha256-28HWZ6nOhKiE+5Ya1N3Vscd8aeH9OKS0t72e/xPfFQQ=";
};
preInstall = ''
substituteInPlace sponsorblock_minimal.lua \
--replace "curl" "${lib.getExe curl}"
'';
meta = with lib; {
description = "A minimal script to skip sponsored segments of YouTube videos";
homepage = "https://codeberg.org/jouni/mpv_sponsorblock_minimal";
license = licenses.gpl3Only;
platforms = platforms.all;
maintainers = with maintainers; [ arthsmn ];
};
}
|