summary refs log tree commit diff
path: root/pkgs/tools/cd-dvd/vobsub2srt/default.nix
blob: 30ae07f9dbd183f2a3cb4aec65896ab253ec0a7f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
{ stdenv, fetchgit, cmake, libtiff, pkgconfig, tesseract }:

let rev = "b70b6f584e8151f70f9d90df054af0911ea7475e";
    shortRev = builtins.substring 0 7 rev;
in
stdenv.mkDerivation {
  name = "vobsub2srt-git-20140226-${shortRev}";

  src = fetchgit {
    inherit rev;
    url = https://github.com/ruediger/VobSub2SRT.git;
    sha256 = "15437eba07e674cec66bc54cfa42ffe8b05816975401c9950bf9016e3881cd6a";
  };

  buildInputs = [ cmake libtiff pkgconfig ];
  propagatedBuildInputs = [ tesseract ];

  meta = {
    homepage = https://github.com/ruediger/VobSub2SRT;
    description = "Converts VobSub subtitles into SRT subtitles";
    license = stdenv.lib.licenses.gpl3Plus;
    platforms = stdenv.lib.platforms.unix;
    maintainers = [ stdenv.lib.maintainers.ttuegel ];
  };
}