diff options
author | Toma <62384384+TomaSajt@users.noreply.github.com> | 2024-05-01 16:10:44 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-01 14:10:44 +0000 |
commit | 211cb102a2f64355396dfeae4e16ac9a37ba5b03 (patch) | |
tree | 1af0a4e3bec74e65df695ba7a7937b5cd3cbd188 | |
parent | 103633159da3748ee569da1b9389cae777e51426 (diff) |
mpvScript.mpv-slicing: init at 0-unstable-2017-11-25 (#254415)
-rw-r--r-- | pkgs/applications/video/mpv/scripts/default.nix | 1 | ||||
-rw-r--r-- | pkgs/applications/video/mpv/scripts/mpv-slicing.nix | 32 |
2 files changed, 33 insertions, 0 deletions
diff --git a/pkgs/applications/video/mpv/scripts/default.nix b/pkgs/applications/video/mpv/scripts/default.nix index 85cbd8233426a..6fb7f19f20bb6 100644 --- a/pkgs/applications/video/mpv/scripts/default.nix +++ b/pkgs/applications/video/mpv/scripts/default.nix @@ -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 { }; diff --git a/pkgs/applications/video/mpv/scripts/mpv-slicing.nix b/pkgs/applications/video/mpv/scripts/mpv-slicing.nix new file mode 100644 index 0000000000000..2266c8321cb85 --- /dev/null +++ b/pkgs/applications/video/mpv/scripts/mpv-slicing.nix @@ -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 ]; + }; +} |