anchor.diff: -{ lib, stdenv, fetchFromGitHub, pkg-config, cmake
  -, glew, glfw3, leptonica, libiconv, tesseract3, zlib }:
  +{ lib
  +, stdenv
  +, fetchFromGitHub
  +, pkg-config
  +, cmake
  +, libiconv
  +, zlib
  +, enableOcr ? true
  +, makeWrapper
  +, tesseract4
  +, leptonica
  +, ffmpeg
  +}:
   
  -with lib;
   stdenv.mkDerivation rec {
     pname = "ccextractor";
     version = "0.91";
  
positive.code: 
    sourceRoot = "source/src";
  
    nativeBuildInputs = [ pkg-config cmake ];
  
    buildInputs = [ glew glfw3 leptonica tesseract3 zlib ] ++ lib.optional (!stdenv.isLinux) libiconv;
  
    meta = {
      homepage = "https://www.ccextractor.org";
      description = "Tool that produces subtitles from closed caption data in videos";
      longDescription = ''
  
negative.code:       It works on Linux, Windows, and OSX.
      '';
      platforms = platforms.unix;
      # undefined reference to `png_do_expand_palette_rgba8_neon'
      # undefined reference to `png_riffle_palette_neon'
      # undefined reference to `png_do_expand_palette_rgb8_neon'
      # undefined reference to `png_init_filter_functions_neon'
      # during Linking C executable ccextractor
      broken = stdenv.isAarch64;
      license = licenses.gpl2Only;
      maintainers = with maintainers; [ titanous ];
    };
  }
  