summary refs log tree commit diff
path: root/pkgs/development/libraries/libcaption/default.nix
blob: 78cf5214051de71691d81c5acd429ced29af0072 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
{ stdenv
, lib
, fetchFromGitHub
, cmake
, re2c
}:

stdenv.mkDerivation (finalAttrs: {
  pname = "libcaption";
  version = "0.7";

  src = fetchFromGitHub {
    owner = "szatmary";
    repo = "libcaption";
    rev = finalAttrs.version;
    sha256 = "sha256-OBtxoFJF0cxC+kfSK8TIKIdLkmCh5WOJlI0fejnisJo=";
    fetchSubmodules = true;
  };

  nativeBuildInputs = [ cmake ];
  buildInputs = [ re2c ];

  meta = with lib; {
    description = "Free open-source CEA608 / CEA708 closed-caption encoder/decoder";
    homepage = "https://github.com/szatmary/libcaption";
    license = licenses.mit;
    platforms = platforms.all;
    maintainers = with maintainers; [ pschmitt ];
  };
})