16 stdenv.mkDerivation rec {
17 pname = "libaribcaption";
20 src = fetchFromGitHub {
22 repo = "libaribcaption";
24 hash = "sha256-x6l0ZrTktSsqfDLVRXpQtUOruhfc8RF3yT991UVZiKA=";
27 nativeBuildInputs = [ cmake ];
29 cmakeFlags = [ "-DBUILD_SHARED_LIBS=ON" ];
32 lib.optionals (!stdenv.hostPlatform.isDarwin) [
36 ++ lib.optionals stdenv.hostPlatform.isDarwin [
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;