anchor.diff:  
     propagatedBuildInputs = [ libpng libtiff lcms2 ];
   
  +  doCheck = testsSupport;
  +  checkPhase = ''
  +    substituteInPlace ../tools/ctest_scripts/travis-ci.cmake \
  +      --replace "JPYLYZER_EXECUTABLE=" "JPYLYZER_EXECUTABLE=\"${jpylyzer}/bin/jpylyzer\" # "
  +    OPJ_SOURCE_DIR=.. ctest -S ../tools/ctest_scripts/travis-ci.cmake
  +  '';
  +
     passthru = {
       incDir = "openjpeg-${branch}";
     };
  
positive.code: { stdenv, fetchFromGitHub, cmake, pkgconfig
  , libpng, libtiff, lcms2
  , mj2Support ? true # MJ2 executables
  , jpwlLibSupport ? true # JPWL library & executables
  , jpipLibSupport ? false # JPIP library & executables
  
negative.code: , openjpegJarSupport ? false # Openjpeg jar (Java)
  , jp3dSupport ? true # # JP3D comp
  , thirdPartySupport ? false # Third party libraries - OFF: only build when found, ON: always build
  , testsSupport ? true
  , jdk ? null
  # Inherit generics
  , branch, version, revision, sha256, patches ? [], extraFlags ? [], ...
  