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

buildLua {
  pname = "mpv-thumbfast";
  version = "0-unstable-2023-12-08";

  src = fetchFromGitHub {
    owner = "po5";
    repo = "thumbfast";
    rev = "03e93feee5a85bf7c65db953ada41b4826e9f905";
    hash = "sha256-5u5WBvWOEydJrnr/vilEgW4+fxkxM6wNjb9Fyyxx/1c=";
  };
  passthru.updateScript = unstableGitUpdater {};

  passthru.extraWrapperArgs = [
    "--prefix" "PATH" ":" (lib.makeBinPath [ mpv-unwrapped ])
  ];

  meta = {
    description = "High-performance on-the-fly thumbnailer for mpv";
    homepage = "https://github.com/po5/thumbfast";
    license = lib.licenses.mpl20;
    maintainers = with lib.maintainers; [ apfelkuchen6 ];
  };
}