Unverified Commit ac808bfc authored by Donovan Glover's avatar Donovan Glover Committed by GitHub
Browse files

Merge pull request #330944 from olmokramer/mpv-scripts-occivink

mpvScripts: Make more of occivink's scripts available
parents 9c52e35e 60c9ceb3
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -92,7 +92,12 @@ let
        autodeint
        autoload
        ;
      inherit (callPackage ./occivink.nix { }) blacklistExtensions seekTo;
      inherit (callPackage ./occivink.nix { })
        blacklistExtensions
        crop
        encode
        seekTo
        ;

      buildLua = callPackage ./buildLua.nix { };
      autosubsync-mpv = callPackage ./autosubsync-mpv.nix { };
+11 −0
Original line number Diff line number Diff line
@@ -3,6 +3,7 @@
  fetchFromGitHub,
  unstableGitUpdater,
  buildLua,
  ffmpeg,
}:

let
@@ -44,6 +45,16 @@ in
lib.mapAttrs (name: lib.makeOverridable (mkScript name)) {

  # Usage: `pkgs.mpv.override { scripts = [ pkgs.mpvScripts.seekTo ]; }`
  crop.meta.description = "Crop the current video in a visual manner.";
  seekTo.meta.description = "Mpv script for seeking to a specific position";
  blacklistExtensions.meta.description = "Automatically remove playlist entries based on their extension.";

  encode = {
    meta.description = "Make an extract of the video currently playing using ffmpeg.";

    postPatch = ''
      substituteInPlace scripts/encode.lua \
          --replace-fail '"ffmpeg"' '"${lib.getExe ffmpeg}"'
    '';
  };
}