about summary refs log tree commit diff
path: root/pkgs/applications/video/mpv/scripts/quack.nix
diff options
context:
space:
mode:
authorJan Tojnar <jtojnar@gmail.com>2024-01-07 16:14:41 +0100
committerJan Tojnar <jtojnar@gmail.com>2024-01-07 16:14:41 +0100
commitff42d23313880d627c7dea5addf744db4562dee5 (patch)
treec9b37f000821c6e8e2e39d983ce8ea25a56e949c /pkgs/applications/video/mpv/scripts/quack.nix
parent798690dc6b55c17705f9f2faab07d5b86b6d50d4 (diff)
parent9ea3a3cfaa995c201b68c1cd3877bd35e1d7dd04 (diff)
downloadnixlib-ff42d23313880d627c7dea5addf744db4562dee5.tar
nixlib-ff42d23313880d627c7dea5addf744db4562dee5.tar.gz
nixlib-ff42d23313880d627c7dea5addf744db4562dee5.tar.bz2
nixlib-ff42d23313880d627c7dea5addf744db4562dee5.tar.lz
nixlib-ff42d23313880d627c7dea5addf744db4562dee5.tar.xz
nixlib-ff42d23313880d627c7dea5addf744db4562dee5.tar.zst
nixlib-ff42d23313880d627c7dea5addf744db4562dee5.zip
Merge branch 'master' into staging-next
Conflicts:

pkgs/development/python-modules/dbt-core/default.nix
pkgs/development/python-modules/dbt-semantic-interfaces/default.nix

Still broken by pydantic 2 bump, though.
Diffstat (limited to 'pkgs/applications/video/mpv/scripts/quack.nix')
-rw-r--r--pkgs/applications/video/mpv/scripts/quack.nix31
1 files changed, 31 insertions, 0 deletions
diff --git a/pkgs/applications/video/mpv/scripts/quack.nix b/pkgs/applications/video/mpv/scripts/quack.nix
new file mode 100644
index 000000000000..e7138de92877
--- /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 ];
+  };
+}