2016-08-27 05:36:45 +02:00
|
|
|
{ stdenv, fetchFromGitHub, pkgconfig, autoreconfHook,
|
2017-02-19 02:11:08 +01:00
|
|
|
glibc, zimg, imagemagick, libass, yasm, python3,
|
|
|
|
ocrSupport ? false, tesseract
|
2016-08-27 05:36:45 +02:00
|
|
|
}:
|
|
|
|
|
2017-02-19 02:11:08 +01:00
|
|
|
assert ocrSupport -> tesseract != null;
|
|
|
|
|
|
|
|
with stdenv.lib;
|
|
|
|
|
2016-08-27 05:36:45 +02:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "vapoursynth-${version}";
|
2017-02-04 19:56:22 +01:00
|
|
|
version = "R36";
|
2016-08-27 05:36:45 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2017-02-04 19:56:22 +01:00
|
|
|
owner = "vapoursynth";
|
|
|
|
repo = "vapoursynth";
|
|
|
|
rev = version;
|
|
|
|
sha256 = "10yiccj7yd4bd3a6k15xahb5y3ymcagyaqavh0wal2rwzfck9k8c";
|
2016-08-27 05:36:45 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
pkgconfig autoreconfHook
|
|
|
|
zimg imagemagick libass glibc tesseract yasm
|
|
|
|
(python3.withPackages (ps: with ps; [ sphinx cython ]))
|
2017-02-19 02:11:08 +01:00
|
|
|
] ++ optional ocrSupport tesseract;
|
2016-08-27 05:36:45 +02:00
|
|
|
|
|
|
|
configureFlags = [
|
|
|
|
"--enable-imwri"
|
|
|
|
"--disable-static"
|
2017-02-19 02:11:08 +01:00
|
|
|
(optionalString (!ocrSupport) "--disable-ocr")
|
2016-08-27 05:36:45 +02:00
|
|
|
];
|
|
|
|
|
2017-02-19 02:11:08 +01:00
|
|
|
meta = {
|
2016-08-27 05:36:45 +02:00
|
|
|
description = "A video processing framework with the future in mind";
|
2017-02-04 19:56:22 +01:00
|
|
|
homepage = http://www.vapoursynth.com/;
|
|
|
|
license = licenses.lgpl21;
|
|
|
|
platforms = platforms.unix;
|
2016-08-27 05:36:45 +02:00
|
|
|
maintainers = with maintainers; [ rnhmjoj ];
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|