diff options
author | Maciej Krüger <mkg20001@gmail.com> | 2024-01-07 13:56:42 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-07 13:56:42 +0100 |
commit | 5e34f283b26eac5a5f65bfd937e1f83a04338dc6 (patch) | |
tree | 05db659571a1765f133335308a54fd744e8563db /pkgs/applications/video/mpv/scripts | |
parent | c931d73fba96e8efc7378c6a24ccb25f4440c9e3 (diff) | |
parent | 98fe96ab9680705b69d4e2d2e764aa79b2924f46 (diff) |
Merge pull request #273857 from nbraud/mpvScripts/quack
mpvScripts.quack: init at unstable-2020-05-26
Diffstat (limited to 'pkgs/applications/video/mpv/scripts')
-rw-r--r-- | pkgs/applications/video/mpv/scripts/default.nix | 1 | ||||
-rw-r--r-- | pkgs/applications/video/mpv/scripts/quack.nix | 31 |
2 files changed, 32 insertions, 0 deletions
diff --git a/pkgs/applications/video/mpv/scripts/default.nix b/pkgs/applications/video/mpv/scripts/default.nix index 158a7c491007b..35c3b635cfe55 100644 --- a/pkgs/applications/video/mpv/scripts/default.nix +++ b/pkgs/applications/video/mpv/scripts/default.nix @@ -72,6 +72,7 @@ let mpv-playlistmanager = callPackage ./mpv-playlistmanager.nix { }; mpv-webm = callPackage ./mpv-webm.nix { }; mpvacious = callPackage ./mpvacious.nix { }; + quack = callPackage ./quack.nix { }; quality-menu = callPackage ./quality-menu.nix { }; simple-mpv-webui = callPackage ./simple-mpv-webui.nix { }; sponsorblock = callPackage ./sponsorblock.nix { }; diff --git a/pkgs/applications/video/mpv/scripts/quack.nix b/pkgs/applications/video/mpv/scripts/quack.nix new file mode 100644 index 0000000000000..e7138de928779 --- /dev/null +++ b/pkgs/applications/video/mpv/scripts/quack.nix @@ -0,0 +1,31 @@ +{ 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 ]; + }; +} |