1{
2 lib,
3 fetchFromGitHub,
4 unstableGitUpdater,
5 buildLua,
6}:
7
8buildLua {
9 pname = "mpv-quack";
10
11 version = "0-unstable-2020-05-27";
12 src = fetchFromGitHub {
13 owner = "CounterPillow";
14 repo = "mpv-quack";
15 rev = "1c87f36f9726d462dd112188c04be54d85692cf3";
16 hash = "sha256-dEnJbS8RJoAxpKINdoMHN4l7vpEdf7+C5JVWpK0VXMw=";
17 };
18 passthru.updateScript = unstableGitUpdater { };
19
20 meta = {
21 description = "Reduce audio volume after seeking";
22 longDescription = ''
23 quack is an mpv script to temporarily reduce the volume after a seek,
24 in order to avoid loud noises when scrubbing through a movie.
25
26 The volume is linearly increased back up to its original level.
27 Repeated seeks before the transition is done work as well.
28 '';
29 homepage = "https://github.com/CounterPillow/mpv-quack";
30 license = lib.licenses.gpl3Only;
31 maintainers = with lib.maintainers; [ nicoo ];
32 };
33}