mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-25 03:17:13 +00:00
35 lines
1 KiB
Nix
35 lines
1 KiB
Nix
{ stdenv, fetchFromGitHub, pkgconfig, cmake
|
|
, glew, glfw3, leptonica, libiconv, tesseract3, zlib }:
|
|
|
|
with stdenv.lib;
|
|
stdenv.mkDerivation rec {
|
|
pname = "ccextractor";
|
|
version = "0.88";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "CCExtractor";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "1sya45hvv4d46bk7541yimmafgvgyhkpsvwfz9kv6pm4yi1lz6nb";
|
|
};
|
|
|
|
sourceRoot = "source/src";
|
|
|
|
nativeBuildInputs = [ pkgconfig cmake ];
|
|
|
|
buildInputs = [ glew glfw3 leptonica tesseract3 zlib ] ++ stdenv.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 ];
|
|
};
|
|
}
|