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