python312Packages.llama-index: 0.12.9 -> 0.12.9.post1 (#371957)
[NixPkgs.git] / pkgs / by-name / li / libaribcaption / package.nix
blob353f31c0e1284595dbf055e5ae25b4fd25ca22cd
2   lib,
3   stdenv,
4   fetchFromGitHub,
5   cmake,
7   fontconfig,
8   freetype,
10   ApplicationServices,
11   CoreFoundation,
12   CoreGraphics,
13   CoreText,
16 stdenv.mkDerivation rec {
17   pname = "libaribcaption";
18   version = "1.1.1";
20   src = fetchFromGitHub {
21     owner = "xqq";
22     repo = "libaribcaption";
23     rev = "v${version}";
24     hash = "sha256-x6l0ZrTktSsqfDLVRXpQtUOruhfc8RF3yT991UVZiKA=";
25   };
27   nativeBuildInputs = [ cmake ];
29   cmakeFlags = [ "-DBUILD_SHARED_LIBS=ON" ];
31   buildInputs =
32     lib.optionals (!stdenv.hostPlatform.isDarwin) [
33       fontconfig
34       freetype
35     ]
36     ++ lib.optionals stdenv.hostPlatform.isDarwin [
37       ApplicationServices
38       CoreFoundation
39       CoreGraphics
40       CoreText
41     ];
43   meta = with lib; {
44     description = "Portable ARIB STD-B24 Caption Decoder/Renderer";
45     homepage = "https://github.com/xqq/libaribcaption";
46     changelog = "https://github.com/xqq/libaribcaption/releases/tag/${src.rev}";
47     license = licenses.mit;
48     maintainers = with maintainers; [ chayleaf ];
49     platforms = platforms.all;
50   };