at 17.09-beta 41 lines 1.0 kB view raw
1{ stdenv, fetchFromGitHub, pkgconfig, autoreconfHook, 2 glibc, zimg, imagemagick, libass, yasm, python3, 3 ocrSupport ? false, tesseract 4}: 5 6assert ocrSupport -> tesseract != null; 7 8with stdenv.lib; 9 10stdenv.mkDerivation rec { 11 name = "vapoursynth-${version}"; 12 version = "R36"; 13 14 src = fetchFromGitHub { 15 owner = "vapoursynth"; 16 repo = "vapoursynth"; 17 rev = version; 18 sha256 = "10yiccj7yd4bd3a6k15xahb5y3ymcagyaqavh0wal2rwzfck9k8c"; 19 }; 20 21 buildInputs = [ 22 pkgconfig autoreconfHook 23 zimg imagemagick libass glibc tesseract yasm 24 (python3.withPackages (ps: with ps; [ sphinx cython ])) 25 ] ++ optional ocrSupport tesseract; 26 27 configureFlags = [ 28 "--enable-imwri" 29 "--disable-static" 30 (optionalString (!ocrSupport) "--disable-ocr") 31 ]; 32 33 meta = { 34 description = "A video processing framework with the future in mind"; 35 homepage = http://www.vapoursynth.com/; 36 license = licenses.lgpl21; 37 platforms = platforms.unix; 38 maintainers = with maintainers; [ rnhmjoj ]; 39 }; 40 41}