anchor.diff:  
     buildInputs = [ libdeflate libpng libtiff zlib lcms2 ]
       ++ lib.optionals jpipServerSupport [ curl fcgi ]
  -    ++ lib.optional opjViewerSupport wxGTK
  -    ++ lib.optional (openjpegJarSupport || jpipLibSupport) jdk;
  +    ++ lib.optional (jpipLibSupport) jdk;
   
     doCheck = (!stdenv.isAarch64 && !stdenv.hostPlatform.isPower64); # tests fail on aarch64-linux and powerpc64
   
  
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")
    ];
  
  