summary refs log tree commit diff
path: root/pkgs/applications/video/ccextractor/default.nix
blob: b559a85d44c60dc8e27bbcb04c20d0067d84ff1f (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
31
32
33
34
{ lib, stdenv, fetchFromGitHub, pkg-config, cmake
, glew, glfw3, leptonica, libiconv, tesseract3, zlib }:

with lib;
stdenv.mkDerivation rec {
  pname = "ccextractor";
  version = "0.90";

  src = fetchFromGitHub {
    owner = "CCExtractor";
    repo = pname;
    rev = "v${version}";
    sha256 = "sha256-NVFCwUZZVt8GrWXWyvoF8UrUZ/ix+GWubKtc3218k7o=";
  };

  sourceRoot = "source/src";

  nativeBuildInputs = [ pkg-config cmake ];

  buildInputs = [ glew glfw3 leptonica tesseract3 zlib ] ++ lib.optional (!stdenv.isLinux) libiconv;

  meta = {
    homepage = "https://www.ccextractor.org";
    description = "Tool that produces subtitles from closed caption data in videos";
    longDescription = ''
      A tool that analyzes video files and produces independent subtitle files from
      closed captions data. CCExtractor is portable, small, and very fast.
      It works on Linux, Windows, and OSX.
    '';
    platforms = platforms.unix;
    license = licenses.gpl2;
    maintainers = with maintainers; [ titanous ];
  };
}