41 lines
846 B
Nix
41 lines
846 B
Nix
|
|
{
|
||
|
|
lib,
|
||
|
|
stdenv,
|
||
|
|
fetchFromGitHub,
|
||
|
|
cmake,
|
||
|
|
|
||
|
|
fontconfig,
|
||
|
|
freetype,
|
||
|
|
|
||
|
|
}:
|
||
|
|
|
||
|
|
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.hostPlatform.isDarwin) [
|
||
|
|
fontconfig
|
||
|
|
freetype
|
||
|
|
];
|
||
|
|
|
||
|
|
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;
|
||
|
|
};
|
||
|
|
}
|