mpvScript.mpv-slicing: init at 0-unstable-2017-11-25 (#254415)
This commit is contained in:
parent
103633159d
commit
211cb102a2
2 changed files with 33 additions and 0 deletions
|
@ -77,6 +77,7 @@ let
|
|||
mpv-cheatsheet = callPackage ./mpv-cheatsheet.nix { };
|
||||
mpv-osc-modern = callPackage ./mpv-osc-modern.nix { };
|
||||
mpv-playlistmanager = callPackage ./mpv-playlistmanager.nix { };
|
||||
mpv-slicing = callPackage ./mpv-slicing.nix { };
|
||||
mpv-webm = callPackage ./mpv-webm.nix { };
|
||||
mpvacious = callPackage ./mpvacious.nix { };
|
||||
quack = callPackage ./quack.nix { };
|
||||
|
|
32
pkgs/applications/video/mpv/scripts/mpv-slicing.nix
Normal file
32
pkgs/applications/video/mpv/scripts/mpv-slicing.nix
Normal file
|
@ -0,0 +1,32 @@
|
|||
{
|
||||
lib,
|
||||
buildLua,
|
||||
fetchFromGitHub,
|
||||
ffmpeg,
|
||||
}:
|
||||
|
||||
buildLua {
|
||||
pname = "mpv-slicing";
|
||||
version = "0-unstable-2017-11-25";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "Kagami";
|
||||
repo = "mpv_slicing";
|
||||
rev = "d09c11227704c8d5bdaa2c799ef64dce881c63a7";
|
||||
hash = "sha256-MKoM0f74/XoctiHQVOB3LzFWtJXpsREfQh5icaebCJo=";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace slicing.lua \
|
||||
--replace-fail ffmpeg ${lib.getExe ffmpeg}
|
||||
'';
|
||||
|
||||
passthru.scriptName = "slicing.lua";
|
||||
|
||||
meta = {
|
||||
description = "A lua script to cut fragments of the video in uncompressed RGB format";
|
||||
homepage = "https://github.com/Kagami/mpv_slicing";
|
||||
license = lib.licenses.cc0;
|
||||
maintainers = with lib.maintainers; [ tomasajt ];
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue