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