anchor.diff:  , enableThreads ? true
   , enableSmpSupport ? true
   , enableKernelPoll ? true
  -, javacSupport ? false, javacPackages ? [ openjdk ]
  +, javacSupport ? false, javacPackages ? [ openjdk8 ]
   , odbcSupport ? false, odbcPackages ? [ unixODBC ]
   , wxSupport ? true, wxPackages ? [ libGL libGLU wxGTK xorg.libX11 ]
   , preUnpack ? "", postUnpack ? ""
  
positive.code:   else libGL != null && libGLU != null && wxGTK != null && xorg != null);
  
  assert odbcSupport -> unixODBC != null;
  assert javacSupport -> openjdk != null;
  
  let
    inherit (stdenv.lib) optional optionals optionalAttrs optionalString;
  
negative.code: { pkgs, stdenv, fetchFromGitHub, makeWrapper, gawk, gnum4, gnused
  , libxml2, libxslt, ncurses, openssl, perl, autoconf
  # TODO: use jdk https://github.com/NixOS/nixpkgs/pull/89731
  , openjdk8 ? null # javacSupport
  , unixODBC ? null # odbcSupport
  , libGL ? null, libGLU ? null, wxGTK ? null, wxmac ? null, xorg ? null # wxSupport
  , parallelBuild ? false
  