mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-07 04:34:46 +00:00
Merge pull request #330944 from olmokramer/mpv-scripts-occivink
mpvScripts: Make more of occivink's scripts available
This commit is contained in:
commit
ac808bfc7d
@ -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 { };
|
||||
|
@ -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}"'
|
||||
'';
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user