2017-11-05 19:08:36 +01:00
|
|
|
{ stdenv, fetchFromGitHub, pkgconfig, autoreconfHook
|
|
|
|
, zimg, libass, python3, libiconv
|
|
|
|
, ApplicationServices, nasm
|
|
|
|
, ocrSupport ? false, tesseract
|
|
|
|
, imwriSupport? true, imagemagick7
|
2016-08-27 05:36:45 +02:00
|
|
|
}:
|
|
|
|
|
2017-09-12 04:10:32 +02:00
|
|
|
assert ocrSupport -> tesseract != null;
|
|
|
|
assert imwriSupport -> imagemagick7 != null;
|
2017-02-19 02:11:08 +01:00
|
|
|
|
|
|
|
with stdenv.lib;
|
|
|
|
|
2016-08-27 05:36:45 +02:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "vapoursynth-${version}";
|
2018-01-11 22:47:52 +01:00
|
|
|
version = "R40";
|
2016-08-27 05:36:45 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2017-02-04 19:56:22 +01:00
|
|
|
owner = "vapoursynth";
|
|
|
|
repo = "vapoursynth";
|
|
|
|
rev = version;
|
2018-01-11 22:47:52 +01:00
|
|
|
sha256 = "1ycc3fdhhryp7hap80z3qmh89br31kcswzp8ai3wlc07zfvcrfck";
|
2016-08-27 05:36:45 +02:00
|
|
|
};
|
|
|
|
|
2017-11-05 19:08:36 +01:00
|
|
|
nativeBuildInputs = [ pkgconfig autoreconfHook nasm ];
|
2016-08-27 05:36:45 +02:00
|
|
|
buildInputs = [
|
2017-11-05 19:08:36 +01:00
|
|
|
zimg libass
|
2016-08-27 05:36:45 +02:00
|
|
|
(python3.withPackages (ps: with ps; [ sphinx cython ]))
|
2017-09-21 22:22:38 +02:00
|
|
|
] ++ optionals stdenv.isDarwin [ libiconv ApplicationServices ]
|
|
|
|
++ optional ocrSupport tesseract
|
2017-09-12 04:10:32 +02:00
|
|
|
++ optional imwriSupport imagemagick7;
|
2016-08-27 05:36:45 +02:00
|
|
|
|
|
|
|
configureFlags = [
|
|
|
|
"--disable-static"
|
2017-09-12 04:10:32 +02:00
|
|
|
(optionalString (!ocrSupport) "--disable-ocr")
|
|
|
|
(optionalString (!imwriSupport) "--disable-imwri")
|
2016-08-27 05:36:45 +02:00
|
|
|
];
|
|
|
|
|
2017-09-12 04:10:32 +02:00
|
|
|
meta = with stdenv.lib; {
|
2016-08-27 05:36:45 +02:00
|
|
|
description = "A video processing framework with the future in mind";
|
2017-09-12 04:24:22 +02:00
|
|
|
homepage = http://www.vapoursynth.com/;
|
|
|
|
license = licenses.lgpl21;
|
|
|
|
platforms = platforms.unix;
|
2016-08-27 05:36:45 +02:00
|
|
|
maintainers = with maintainers; [ rnhmjoj ];
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|