1{
2 lib,
3 fetchFromGitHub,
4 unstableGitUpdater,
5 buildLua,
6}:
7buildLua {
8 pname = "dynamic-crop";
9
10 version = "0-unstable-2024-09-14";
11 src = fetchFromGitHub {
12 owner = "Ashyni";
13 repo = "mpv-scripts";
14 rev = "d3f5685f5209ae548f8398b21d4dcbbea766d076";
15 hash = "sha256-9v8ZsBj9F5Odhfo/iWGA3Ak/+gFrbe0FldrTyCKF6tk=";
16 };
17 passthru.scriptName = "dynamic-crop.lua";
18
19 passthru.updateScript = unstableGitUpdater { };
20
21 meta = {
22 description = ''Script to "cropping" dynamically, hard-coded black bars detected with lavfi-cropdetect filter for Ultra Wide Screen or any screen (Smartphone/Tablet)'';
23 homepage = "https://github.com/Ashyni/mpv-scripts";
24 license = lib.licenses.mit;
25 maintainers = [ lib.maintainers.iynaix ];
26 };
27}