2021-02-05 17:12:51 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, pkg-config, cmake
|
2020-04-24 23:36:52 +00:00
|
|
|
, glew, glfw3, leptonica, libiconv, tesseract3, zlib }:
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
with lib;
|
2020-04-24 23:36:52 +00:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "ccextractor";
|
2021-06-28 23:13:55 +00:00
|
|
|
version = "0.89";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "CCExtractor";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2021-06-28 23:13:55 +00:00
|
|
|
sha256 = "sha256-847yt6pUTsDnVbrMQQPJ0pqu6UnKmYmr8UtR8+TP11A=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
sourceRoot = "source/src";
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
nativeBuildInputs = [ pkg-config cmake ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
buildInputs = [ glew glfw3 leptonica tesseract3 zlib ] ++ lib.optional (!stdenv.isLinux) libiconv;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|