From d19b53a5719fad79842768a4322f79a67dd22e44 Mon Sep 17 00:00:00 2001 From: zi3m5f <113244000+zi3m5f@users.noreply.github.com> Date: Sun, 3 Nov 2024 22:00:45 +0100 Subject: [PATCH] vidcutter: init at 6.0.5.3 --- pkgs/by-name/vi/vidcutter/package.nix | 67 +++++++++++++++++++++++++++ 1 file changed, 67 insertions(+) create mode 100644 pkgs/by-name/vi/vidcutter/package.nix diff --git a/pkgs/by-name/vi/vidcutter/package.nix b/pkgs/by-name/vi/vidcutter/package.nix new file mode 100644 index 000000000000..1d0c112b7858 --- /dev/null +++ b/pkgs/by-name/vi/vidcutter/package.nix @@ -0,0 +1,67 @@ +{ + lib, + fetchFromGitHub, + ffmpeg, + mediainfo, + mpv, + python3Packages, + qt5, +}: +let + version = "6.0.5.3"; +in +python3Packages.buildPythonApplication { + pname = "vidcutter"; + inherit version; + + src = fetchFromGitHub { + owner = "ozmartian"; + repo = "vidcutter"; + rev = "refs/tags/${version}"; + hash = "sha256-MCltdvXgsZgPh0ezGvWFEa5vZVDBc6r0WxvXSLf4x2Y="; + }; + + pyproject = true; + + nativeBuildInputs = [ qt5.wrapQtAppsHook ]; + + buildInputs = [ + mpv + qt5.qtwayland + ]; + + build-system = with python3Packages; [ + setuptools + ]; + + dependencies = with python3Packages; [ + pyopengl + pyqt5 + simplejson + ]; + + dontWrapQtApps = true; + makeWrapperArgs = [ + "\${qtWrapperArgs[@]}" + "--prefix PATH : ${ + lib.makeBinPath [ + ffmpeg + mediainfo + ] + }" + ]; + + meta = { + description = "Modern yet simple multi-platform video cutter and joiner"; + longDescription = '' + A modern, simple to use, constantly evolving and hella fast MEDIA CUTTER + JOINER + with frame-accurate SmartCut technology, chapter support, media stream selection for audio + subtitle channels + and blackdetect video filter support to automatically detect scene changes or skip commercials in digital TV recordings. + ''; + homepage = "https://vidcutter.ozmartians.com/"; + changelog = "https://github.com/ozmartian/vidcutter/blob/master/CHANGELOG"; + license = lib.licenses.gpl3Plus; + maintainers = [ lib.maintainers.zi3m5f ]; + mainProgram = "vidcutter"; + }; +}