libaribcaption: init at 1.1.1

https://github.com/xqq/libaribcaption - a library for decoding ARIB
STD-B24 captions
This commit is contained in:
chayleaf 2023-11-01 04:38:54 +07:00
parent 800965ce8c
commit 4ae49638cd
No known key found for this signature in database
GPG key ID: 78171AD46227E68E
2 changed files with 52 additions and 0 deletions

View file

@ -0,0 +1,48 @@
{ lib
, stdenv
, fetchFromGitHub
, cmake
, fontconfig
, freetype
, ApplicationServices
, CoreFoundation
, CoreGraphics
, CoreText
}:
stdenv.mkDerivation rec {
pname = "libaribcaption";
version = "1.1.1";
src = fetchFromGitHub {
owner = "xqq";
repo = "libaribcaption";
rev = "v${version}";
hash = "sha256-x6l0ZrTktSsqfDLVRXpQtUOruhfc8RF3yT991UVZiKA=";
};
nativeBuildInputs = [ cmake ];
cmakeFlags = [ "-DBUILD_SHARED_LIBS=ON" ];
buildInputs = lib.optionals (!stdenv.isDarwin) [
fontconfig
freetype
] ++ lib.optionals stdenv.isDarwin [
ApplicationServices
CoreFoundation
CoreGraphics
CoreText
];
meta = with lib; {
description = "Portable ARIB STD-B24 Caption Decoder/Renderer";
homepage = "https://github.com/xqq/libaribcaption";
changelog = "https://github.com/xqq/libaribcaption/releases/tag/${src.rev}";
license = licenses.mit;
maintainers = with maintainers; [ chayleaf ];
platforms = platforms.all;
};
}

View file

@ -22450,6 +22450,10 @@ with pkgs;
libarchive-qt = libsForQt5.callPackage ../development/libraries/libarchive-qt { }; libarchive-qt = libsForQt5.callPackage ../development/libraries/libarchive-qt { };
libaribcaption = callPackage ../by-name/li/libaribcaption/package.nix {
inherit (darwin.apple_sdk.frameworks) ApplicationServices CoreFoundation CoreGraphics CoreText;
};
libasn1c = callPackage ../servers/osmocom/libasn1c/default.nix { }; libasn1c = callPackage ../servers/osmocom/libasn1c/default.nix { };
libasr = callPackage ../development/libraries/libasr { }; libasr = callPackage ../development/libraries/libasr { };