about summary refs log tree commit diff
path: root/pkgs/applications/video/mpv/scripts/chapterskip.nix
blob: b1b993df3692aaedc51bc8f5c54f5da1a91df1c7 (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
{
  lib,
  fetchFromGitHub,
  unstableGitUpdater,
  buildLua,
}:

buildLua {
  pname = "chapterskip";

  version = "0-unstable-2022-09-08";
  src = fetchFromGitHub {
    owner = "po5";
    repo = "chapterskip";
    rev = "b26825316e3329882206ae78dc903ebc4613f039";
    hash = "sha256-OTrLQE3rYvPQamEX23D6HttNjx3vafWdTMxTiWpDy90=";
  };
  passthru.updateScript = unstableGitUpdater { };

  meta = {
    description = "Automatically skips chapters based on title";
    longDescription = ''
      MPV script that skips chapters based on their title, categorized using regexes.
      The set of skipped categories can be configured globally, or by an auto-profile.
    '';
    homepage = "https://github.com/po5/chapterskip";
    license = lib.licenses.unfree; # https://github.com/po5/chapterskip/issues/10
    maintainers = with lib.maintainers; [ nicoo ];
  };
}