1 { lib, stdenv, fetchFromGitHub, cmake, libtiff, pkg-config, tesseract3 }:
3 stdenv.mkDerivation rec {
5 version = "unstable-2014-08-17";
7 src = fetchFromGitHub {
10 rev = "a6abbd61127a6392d420bbbebdf7612608c943c2";
11 sha256 = "sha256-i6V2Owb8GcTcWowgb/BmdupOSFsYiCF2SbC9hXa26uY=";
14 env.NIX_CFLAGS_COMPILE = toString (lib.optionals stdenv.cc.isGNU [ "-std=c++11" ]);
16 nativeBuildInputs = [ cmake pkg-config ];
17 buildInputs = [ libtiff ];
18 propagatedBuildInputs = [ tesseract3 ];
21 homepage = "https://github.com/ruediger/VobSub2SRT";
22 description = "Converts VobSub subtitles into SRT subtitles";
23 license = lib.licenses.gpl3Plus;
24 platforms = lib.platforms.unix;
25 maintainers = [ lib.maintainers.ttuegel ];
26 mainProgram = "vobsub2srt";