1{
2 lib,
3 buildLua,
4 fetchFromGitHub,
5 ffmpeg,
6 unstableGitUpdater,
7}:
8
9buildLua {
10 pname = "mpv-slicing";
11 version = "0-unstable-2017-11-25";
12
13 src = fetchFromGitHub {
14 owner = "Kagami";
15 repo = "mpv_slicing";
16 rev = "d09c11227704c8d5bdaa2c799ef64dce881c63a7";
17 hash = "sha256-MKoM0f74/XoctiHQVOB3LzFWtJXpsREfQh5icaebCJo=";
18 };
19 passthru.updateScript = unstableGitUpdater { };
20
21 postPatch = ''
22 substituteInPlace slicing.lua \
23 --replace-fail ffmpeg ${lib.getExe ffmpeg}
24 '';
25
26 passthru.scriptName = "slicing.lua";
27
28 meta = {
29 description = "Lua script to cut fragments of the video in uncompressed RGB format";
30 homepage = "https://github.com/Kagami/mpv_slicing";
31 license = lib.licenses.cc0;
32 maintainers = with lib.maintainers; [ tomasajt ];
33 };
34}