From b6747f4e6f01bab4fc2c3523e44079a51b22d4d8 Mon Sep 17 00:00:00 2001 From: jopejoe1 Date: Sun, 8 Sep 2024 20:54:35 +0200 Subject: [PATCH 1/3] zvbi: init at 0.2.42 --- pkgs/by-name/zv/zvbi/package.nix | 57 ++++++++++++++++++++++++++++++++ 1 file changed, 57 insertions(+) create mode 100644 pkgs/by-name/zv/zvbi/package.nix diff --git a/pkgs/by-name/zv/zvbi/package.nix b/pkgs/by-name/zv/zvbi/package.nix new file mode 100644 index 000000000000..cc48da24bb3c --- /dev/null +++ b/pkgs/by-name/zv/zvbi/package.nix @@ -0,0 +1,57 @@ +{ + autoreconfHook, + fetchFromGitHub, + gitUpdater, + lib, + libiconv, + stdenv, + testers, + validatePkgConfig, +}: + +stdenv.mkDerivation (finalAttrs: { + pname = "zvbi"; + version = "0.2.42"; + + src = fetchFromGitHub { + owner = "zapping-vbi"; + repo = "zvbi"; + rev = "refs/tags/v${finalAttrs.version}"; + hash = "sha256-IeSGscgz51IndX6Xbu8Kw8GcJ9MLXXFhV+4LvnVkrLE="; + }; + + nativeBuildInputs = [ + autoreconfHook + validatePkgConfig + ]; + + buildInputs = lib.optional stdenv.isDarwin libiconv; + + outputs = [ + "out" + "dev" + "man" + ]; + + passthru = { + tests.pkg-config = testers.testMetaPkgConfig finalAttrs.finalPackage; + updateScript = gitUpdater { rev-prefix = "v"; }; + }; + + meta = { + description = "Vertical Blanking Interval (VBI) utilities"; + homepage = "https://github.com/zapping-vbi/zvbi"; + changelog = "https://github.com/zapping-vbi/zvbi/blob/v${finalAttrs.version}/ChangeLog"; + pkgConfigModules = [ "zvbi-0.2" ]; + license = with lib.licenses; [ + bsd2 + bsd3 + gpl2 + gpl2Plus + lgpl21Plus + lgpl2Plus + mit + ]; + maintainers = with lib.maintainers; [ jopejoe1 ]; + }; +}) From 09e56a61f697c82f41a9f4083e927d76f82aeff9 Mon Sep 17 00:00:00 2001 From: jopejoe1 Date: Sun, 8 Sep 2024 21:21:09 +0200 Subject: [PATCH 2/3] ffmpeg: add withZvbi options support for teletext decoding --- pkgs/development/libraries/ffmpeg/generic.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkgs/development/libraries/ffmpeg/generic.nix b/pkgs/development/libraries/ffmpeg/generic.nix index e6863e849324..14cf65a5563a 100644 --- a/pkgs/development/libraries/ffmpeg/generic.nix +++ b/pkgs/development/libraries/ffmpeg/generic.nix @@ -143,6 +143,7 @@ , withZimg ? withHeadlessDeps , withZlib ? withHeadlessDeps , withZmq ? withFullDeps # Message passing +, withZvbi ? withFullDeps # Teletext support /* * Licensing options (yes some are listed twice, filters and such are not listed) @@ -325,6 +326,7 @@ , zeromq4 , zimg , zlib +, zvbi /* * Darwin frameworks */ @@ -683,6 +685,7 @@ stdenv.mkDerivation (finalAttrs: { (enableFeature withZimg "libzimg") (enableFeature withZlib "zlib") (enableFeature withZmq "libzmq") + (enableFeature withZvbi "libzvbi") /* * Developer flags */ @@ -821,6 +824,7 @@ stdenv.mkDerivation (finalAttrs: { ++ optionals withZimg [ zimg ] ++ optionals withZlib [ zlib ] ++ optionals withZmq [ zeromq4 ] + ++ optionals withZvbi [ zvbi ] ; buildFlags = [ "all" ] From c4fe4811fef633980e03c7ccfbae9abc5351f2bc Mon Sep 17 00:00:00 2001 From: jopejoe1 Date: Sun, 8 Sep 2024 21:25:09 +0200 Subject: [PATCH 3/3] ffmpeg: add withAribb24 options enables decoding of ARIB subtitles --- pkgs/development/libraries/ffmpeg/generic.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkgs/development/libraries/ffmpeg/generic.nix b/pkgs/development/libraries/ffmpeg/generic.nix index 14cf65a5563a..a4ae49d404ad 100644 --- a/pkgs/development/libraries/ffmpeg/generic.nix +++ b/pkgs/development/libraries/ffmpeg/generic.nix @@ -37,6 +37,7 @@ , withAmf ? lib.meta.availableOn stdenv.hostPlatform amf # AMD Media Framework video encoding , withAom ? withHeadlessDeps # AV1 reference encoder , withAppKit ? withHeadlessDeps && stdenv.hostPlatform.isDarwin # Apple AppKit framework +, withAribb24 ? withFullDeps # ARIB text and caption decoding , withAribcaption ? withFullDeps && lib.versionAtLeast version "6.1" # ARIB STD-B24 Caption Decoder/Renderer , withAss ? withHeadlessDeps && stdenv.hostPlatform == stdenv.buildPlatform # (Advanced) SubStation Alpha subtitle rendering , withAudioToolbox ? withHeadlessDeps && stdenv.hostPlatform.isDarwin # Apple AudioToolbox @@ -226,6 +227,7 @@ , alsa-lib , amf , amf-headers +, aribb24 , avisynthplus , bzip2 , celt @@ -556,6 +558,7 @@ stdenv.mkDerivation (finalAttrs: { (enableFeature withAmf "amf") (enableFeature withAom "libaom") (enableFeature withAppKit "appkit") + (enableFeature withAribb24 "libaribb24") ] ++ optionals (versionAtLeast version "6.1") [ (enableFeature withAribcaption "libaribcaption") ] ++ [ @@ -729,6 +732,7 @@ stdenv.mkDerivation (finalAttrs: { ++ optionals withAmf [ amf-headers ] ++ optionals withAom [ libaom ] ++ optionals withAppKit [ AppKit ] + ++ optionals withAribb24 [ aribb24 ] ++ optionals withAribcaption [ libaribcaption ] ++ optionals withAss [ libass ] ++ optionals withAudioToolbox [ AudioToolbox ]