From 44f36cdc9b878623e9ed687950e78ee752ec1f2c Mon Sep 17 00:00:00 2001 From: nicoo Date: Tue, 17 Oct 2023 10:22:22 +0000 Subject: [PATCH] mpvScripts.chapterskip: init at unstable-2022-09-08 --- .../video/mpv/scripts/chapterskip.nix | 26 +++++++++++++++++++ .../video/mpv/scripts/default.nix | 1 + 2 files changed, 27 insertions(+) create mode 100644 pkgs/applications/video/mpv/scripts/chapterskip.nix diff --git a/pkgs/applications/video/mpv/scripts/chapterskip.nix b/pkgs/applications/video/mpv/scripts/chapterskip.nix new file mode 100644 index 000000000000..c1dc87ea6802 --- /dev/null +++ b/pkgs/applications/video/mpv/scripts/chapterskip.nix @@ -0,0 +1,26 @@ +{ lib +, fetchFromGitHub +, stdenvNoCC }: + +stdenvNoCC.mkDerivation { + pname = "chapterskip"; + passthru.scriptName = "chapterskip.lua"; + + version = "unstable-2022-09-08"; + src = fetchFromGitHub { + owner = "po5"; + repo = "chapterskip"; + rev = "b26825316e3329882206ae78dc903ebc4613f039"; + hash = "sha256-OTrLQE3rYvPQamEX23D6HttNjx3vafWdTMxTiWpDy90="; + }; + + dontBuild = true; + preferLocalBuild = true; + installPhase = "install -Dt $out/share/mpv/scripts chapterskip.lua"; + + meta = with lib; { + homepage = "https://github.com/po5/chapterskip"; + platforms = platforms.all; + maintainers = with maintainers; [ nicoo ]; + }; +} diff --git a/pkgs/applications/video/mpv/scripts/default.nix b/pkgs/applications/video/mpv/scripts/default.nix index 8b928e7085bc..2866f80f5652 100644 --- a/pkgs/applications/video/mpv/scripts/default.nix +++ b/pkgs/applications/video/mpv/scripts/default.nix @@ -9,6 +9,7 @@ lib.recurseIntoAttrs autocrop = callPackage ./autocrop.nix { }; autodeint = callPackage ./autodeint.nix { }; autoload = callPackage ./autoload.nix { }; + chapterskip = callPackage ./chapterskip.nix { }; convert = callPackage ./convert.nix { }; inhibit-gnome = callPackage ./inhibit-gnome.nix { }; mpris = callPackage ./mpris.nix { };