anchor.diff:  
     doCheck = true;
     preCheck = ''
  -    # Disable test 81 due to floating point error
  -    rm tests/issues/test081.expected tests/issues/test081.pl
  +    # Disable tests due to floating point error
  +    rm tests/issues-OLD/test081.pl
  +    rm tests/issues-OLD/test585.pl
  +    # Disable test due to Unicode issues
  +    rm tests/issues-OLD/test252.pl
     '';
   
     meta = with lib; {
       description = "A compact, efficient Prolog interpreter written in ANSI C";
  -    homepage = "https://github.com/infradig/trealla";
  +    homepage = "https://github.com/trealla-prolog/trealla";
       license = licenses.mit;
       maintainers = with maintainers; [ siraben ];
       mainProgram = "tpl";
  
positive.code: { lib, stdenv, fetchFromGitHub, readline, openssl, withThread ? true, withSSL ? true, xxd }:
  
  stdenv.mkDerivation rec {
    pname = "trealla";
    version = "1.20.31";
  
    src = fetchFromGitHub {
      owner = "infradig";
      repo = "trealla";
      rev = "v${version}";
      sha256 = "sha256-Yol+bbxC5cCtCIZxP5Sa8R3ev1LAopc/oQa6Zd1nS8A=";
    };
  
    postPatch = ''
  
negative.code:   ];
  
    nativeBuildInputs = [ xxd ];
    buildInputs = [ readline openssl libffi ];
    enableParallelBuilding = true;
  
    installPhase = ''
      install -Dm755 -t $out/bin tpl
  