nixpkgs/pkgs/applications/video/ccextractor/default.nix

35 lines
1.0 KiB
Nix
Raw Normal View History

{ lib, stdenv, fetchFromGitHub, pkg-config, cmake
2019-07-27 03:45:16 +00:00
, glew, glfw3, leptonica, libiconv, tesseract3, zlib }:
2021-01-15 05:42:41 +00:00
with lib;
2019-07-27 03:45:16 +00:00
stdenv.mkDerivation rec {
pname = "ccextractor";
2021-07-26 23:06:43 +00:00
version = "0.91";
2019-07-27 03:45:16 +00:00
src = fetchFromGitHub {
owner = "CCExtractor";
repo = pname;
rev = "v${version}";
2021-07-26 23:06:43 +00:00
sha256 = "sha256-VqJQaYzH8psQJfnDariV4q7SkDiXRz9byR51C8DzVEs=";
2019-07-27 03:45:16 +00:00
};
sourceRoot = "source/src";
nativeBuildInputs = [ pkg-config cmake ];
2019-07-27 03:45:16 +00:00
2021-01-15 05:42:41 +00:00
buildInputs = [ glew glfw3 leptonica tesseract3 zlib ] ++ lib.optional (!stdenv.isLinux) libiconv;
2019-07-27 03:45:16 +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 ];
};
}