depot/third_party/nixpkgs/pkgs/applications/video/mpv/scripts/quack.nix
Default email e7ec2969af Project import generated by Copybara.
GitOrigin-RevId: 9b19f5e77dd906cb52dade0b7bd280339d2a1f3d
2024-01-13 09:15:51 +01:00

31 lines
913 B
Nix

{ lib
, fetchFromGitHub
, unstableGitUpdater
, buildLua }:
buildLua rec {
pname = "mpv-quack";
version = "unstable-2020-05-26";
src = fetchFromGitHub {
owner = "CounterPillow";
repo = pname;
rev = "1c87f36f9726d462dd112188c04be54d85692cf3";
hash = "sha256-dEnJbS8RJoAxpKINdoMHN4l7vpEdf7+C5JVWpK0VXMw=";
};
passthru.updateScript = unstableGitUpdater {};
meta = {
description = "Reduce audio volume after seeking";
longDescription = ''
quack is an mpv script to temporarily reduce the volume after a seek,
in order to avoid loud noises when scrubbing through a movie.
The volume is linearly increased back up to its original level.
Repeated seeks before the transition is done work as well.
'';
homepage = "https://github.com/CounterPillow/quack";
license = lib.licenses.gpl3;
maintainers = with lib.maintainers; [ nicoo ];
};
}