From 1ae9b50a772e7acf5ce61fe55a56b9f4effa73e7 Mon Sep 17 00:00:00 2001 From: Michele Guerini Rocco Date: Sun, 19 Feb 2017 02:11:08 +0100 Subject: [PATCH] vapoursynth: disable OCR by default (#22943) --- pkgs/development/libraries/vapoursynth/default.nix | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/pkgs/development/libraries/vapoursynth/default.nix b/pkgs/development/libraries/vapoursynth/default.nix index 0922a5e3785..ae43307cf31 100644 --- a/pkgs/development/libraries/vapoursynth/default.nix +++ b/pkgs/development/libraries/vapoursynth/default.nix @@ -1,8 +1,12 @@ { stdenv, fetchFromGitHub, pkgconfig, autoreconfHook, - glibc, zimg, imagemagick, libass, tesseract, yasm, - python3 + glibc, zimg, imagemagick, libass, yasm, python3, + ocrSupport ? false, tesseract }: +assert ocrSupport -> tesseract != null; + +with stdenv.lib; + stdenv.mkDerivation rec { name = "vapoursynth-${version}"; version = "R36"; @@ -18,14 +22,15 @@ stdenv.mkDerivation rec { pkgconfig autoreconfHook zimg imagemagick libass glibc tesseract yasm (python3.withPackages (ps: with ps; [ sphinx cython ])) - ]; + ] ++ optional ocrSupport tesseract; configureFlags = [ "--enable-imwri" "--disable-static" + (optionalString (!ocrSupport) "--disable-ocr") ]; - meta = with stdenv.lib; { + meta = { description = "A video processing framework with the future in mind"; homepage = http://www.vapoursynth.com/; license = licenses.lgpl21;