anchor.diff:      license = licenses.bsd2;
       maintainers = with maintainers; [ codyopel ];
       platforms = platforms.all;
  -    # opj viewer fails to compile with lots of errors, jar requires openjpeg library already compiled and installed
  -    broken = (opjViewerSupport || openjpegJarSupport);
     };
   }
  
positive.code: , libdeflate, libpng, libtiff, zlib, lcms2, jpylyzer
  , jpipLibSupport ? false # JPIP library & executables
  , jpipServerSupport ? false, curl, fcgi # JPIP Server
  , opjViewerSupport ? false, wxGTK # OPJViewer executable
  , openjpegJarSupport ? false # Openjpeg jar (Java)
  , jdk
  , poppler
  }:
  
negative.code:     "-DBUILD_THIRDPARTY=OFF"
      (mkFlag jpipLibSupport "BUILD_JPIP")
      (mkFlag jpipServerSupport "BUILD_JPIP_SERVER")
      "-DBUILD_VIEWER=OFF"
      "-DBUILD_JAVA=OFF"
      (mkFlag doCheck "BUILD_TESTING")
    ];
  
  