about summary refs log tree commit diff
path: root/pkgs/applications/video/mpv/scripts/reload.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/reload.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/reload.nix')
-rw-r--r--pkgs/applications/video/mpv/scripts/reload.nix29
1 files changed, 29 insertions, 0 deletions
diff --git a/pkgs/applications/video/mpv/scripts/reload.nix b/pkgs/applications/video/mpv/scripts/reload.nix
new file mode 100644
index 000000000000..6f316e2f5d42
--- /dev/null
+++ b/pkgs/applications/video/mpv/scripts/reload.nix
@@ -0,0 +1,29 @@
+{ lib
+, fetchFromGitHub
+, unstableGitUpdater
+, buildLua }:
+
+buildLua rec {
+  pname = "mpv-reload";
+
+  version = "unstable-2023-12-19";
+  src = fetchFromGitHub {
+    owner = "4e6";
+    repo  = pname;
+    rev   = "133d596f6d369f320b4595bbed1f4a157b7b9ee5";
+    hash  = "sha256-B+4TCmf1T7MuwtbL+hGZoN1ktI31hnO5yayMG1zW8Ng=";
+  };
+  passthru.updateScript = unstableGitUpdater {};
+
+  meta = {
+    description = "Manual & automatic reloading of videos";
+    longDescription = ''
+      This script adds reloading of videos, automatically on timers (when stuck
+      buffering etc.) or manually on keybinds, to help with cases where a stream
+      is not loading further due to a network or remote issue.
+    '';
+    homepage = "https://github.com/4e6/mpv-reload";
+    license = lib.licenses.mit;
+    maintainers = with lib.maintainers; [ nicoo ];
+  };
+}