vapoursynth: disable OCR by default (#22943)
This commit is contained in:
parent
de4a17409f
commit
1ae9b50a77
@ -1,8 +1,12 @@
|
|||||||
{ stdenv, fetchFromGitHub, pkgconfig, autoreconfHook,
|
{ stdenv, fetchFromGitHub, pkgconfig, autoreconfHook,
|
||||||
glibc, zimg, imagemagick, libass, tesseract, yasm,
|
glibc, zimg, imagemagick, libass, yasm, python3,
|
||||||
python3
|
ocrSupport ? false, tesseract
|
||||||
}:
|
}:
|
||||||
|
|
||||||
|
assert ocrSupport -> tesseract != null;
|
||||||
|
|
||||||
|
with stdenv.lib;
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "vapoursynth-${version}";
|
name = "vapoursynth-${version}";
|
||||||
version = "R36";
|
version = "R36";
|
||||||
@ -18,14 +22,15 @@ stdenv.mkDerivation rec {
|
|||||||
pkgconfig autoreconfHook
|
pkgconfig autoreconfHook
|
||||||
zimg imagemagick libass glibc tesseract yasm
|
zimg imagemagick libass glibc tesseract yasm
|
||||||
(python3.withPackages (ps: with ps; [ sphinx cython ]))
|
(python3.withPackages (ps: with ps; [ sphinx cython ]))
|
||||||
];
|
] ++ optional ocrSupport tesseract;
|
||||||
|
|
||||||
configureFlags = [
|
configureFlags = [
|
||||||
"--enable-imwri"
|
"--enable-imwri"
|
||||||
"--disable-static"
|
"--disable-static"
|
||||||
|
(optionalString (!ocrSupport) "--disable-ocr")
|
||||||
];
|
];
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = {
|
||||||
description = "A video processing framework with the future in mind";
|
description = "A video processing framework with the future in mind";
|
||||||
homepage = http://www.vapoursynth.com/;
|
homepage = http://www.vapoursynth.com/;
|
||||||
license = licenses.lgpl21;
|
license = licenses.lgpl21;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user