2023-03-03 05:12:47 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, cmake, libtiff, pkg-config, tesseract3 }:
|
2013-12-29 03:16:41 +00:00
|
|
|
|
2021-08-12 19:47:47 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2021-11-10 21:21:47 +00:00
|
|
|
pname = "vobsub2srt";
|
|
|
|
version = "unstable-2014-08-17";
|
2013-12-29 03:16:41 +00:00
|
|
|
|
2022-03-08 14:29:01 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "ruediger";
|
|
|
|
repo = "VobSub2SRT";
|
|
|
|
rev = "a6abbd61127a6392d420bbbebdf7612608c943c2";
|
|
|
|
sha256 = "sha256-i6V2Owb8GcTcWowgb/BmdupOSFsYiCF2SbC9hXa26uY=";
|
2013-12-29 03:16:41 +00:00
|
|
|
};
|
|
|
|
|
2023-02-20 15:36:06 +00:00
|
|
|
env.NIX_CFLAGS_COMPILE = toString (lib.optionals stdenv.cc.isGNU [ "-std=c++11" ]);
|
2023-01-28 21:35:28 +00:00
|
|
|
|
2020-12-31 07:48:55 +00:00
|
|
|
nativeBuildInputs = [ cmake pkg-config ];
|
|
|
|
buildInputs = [ libtiff ];
|
2023-03-03 05:12:47 +00:00
|
|
|
propagatedBuildInputs = [ tesseract3 ];
|
2013-12-29 03:16:41 +00:00
|
|
|
|
|
|
|
meta = {
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://github.com/ruediger/VobSub2SRT";
|
2013-12-29 03:16:41 +00:00
|
|
|
description = "Converts VobSub subtitles into SRT subtitles";
|
2021-01-15 09:19:50 +00:00
|
|
|
license = lib.licenses.gpl3Plus;
|
|
|
|
platforms = lib.platforms.unix;
|
|
|
|
maintainers = [ lib.maintainers.ttuegel ];
|
2023-11-23 02:51:17 +00:00
|
|
|
mainProgram = "vobsub2srt";
|
2013-12-29 03:16:41 +00:00
|
|
|
};
|
|
|
|
}
|