15 stdenv.mkDerivation rec {
16 pname = "libaribcaption";
19 src = fetchFromGitHub {
21 repo = "libaribcaption";
23 hash = "sha256-x6l0ZrTktSsqfDLVRXpQtUOruhfc8RF3yT991UVZiKA=";
26 nativeBuildInputs = [ cmake ];
28 cmakeFlags = [ "-DBUILD_SHARED_LIBS=ON" ];
30 buildInputs = lib.optionals (!stdenv.hostPlatform.isDarwin) [
33 ] ++ lib.optionals stdenv.hostPlatform.isDarwin [
41 description = "Portable ARIB STD-B24 Caption Decoder/Renderer";
42 homepage = "https://github.com/xqq/libaribcaption";
43 changelog = "https://github.com/xqq/libaribcaption/releases/tag/${src.rev}";
44 license = licenses.mit;
45 maintainers = with maintainers; [ chayleaf ];
46 platforms = platforms.all;