Skip to content

Commit

Permalink
mpvScripts.smartskip: init at 0-unstable-2023-11-25 (NixOS#346294)
Browse files Browse the repository at this point in the history
  • Loading branch information
uninsane authored Nov 15, 2024
2 parents c94c120 + 5dbb64e commit d08575f
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 0 deletions.
1 change: 1 addition & 0 deletions pkgs/applications/video/mpv/scripts/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ let
quality-menu = callPackage ./quality-menu.nix { };
reload = callPackage ./reload.nix { };
simple-mpv-webui = callPackage ./simple-mpv-webui.nix { };
smartskip = callPackage ./smartskip.nix { };
sponsorblock = callPackage ./sponsorblock.nix { };
sponsorblock-minimal = callPackage ./sponsorblock-minimal.nix { };
thumbfast = callPackage ./thumbfast.nix { };
Expand Down
28 changes: 28 additions & 0 deletions pkgs/applications/video/mpv/scripts/smartskip.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
lib,
fetchFromGitHub,
unstableGitUpdater,
buildLua,
}:

buildLua {
pname = "smartskip";
version = "0-unstable-2023-11-25";

scriptPath = "scripts/SmartSkip.lua";
src = fetchFromGitHub {
owner = "Eisa01";
repo = "mpv-scripts";
rev = "48d68283cea47ff8e904decc9003b3abc3e2123e";
hash = "sha256-95CAKjBRELX2f7oWSHFWJnI0mikAoxhfUphe9k51Qf4=";
};

passthru.updateScript = unstableGitUpdater { };

meta = {
description = "Automatically or manually skip opening, intro, outro, and preview";
homepage = "https://github.com/Eisa01/mpv-scripts";
license = lib.licenses.bsd2;
maintainers = [ lib.maintainers.iynaix ];
};
}

0 comments on commit d08575f

Please sign in to comment.