anchor.diff:  , flex
   , php
   , lib, stdenv
  +, installShellFiles
   }:
   
   # Make a custom wrapper. If `wrapProgram` is used, arcanist thinks .arc-wrapped is being
  
positive.code:   '';
  
    buildPhase = ''
      make cleanall -C support/xhpast
      make xhpast -C support/xhpast
    '';
  
    installPhase = ''
      mkdir -p $out/bin $out/libexec
      make install -C support/xhpast
      make cleanall -C support/xhpast
      cp -R . $out/libexec/arcanist
  
      ${makeArcWrapper "arc"}
      ${makeArcWrapper "phage"}
    '';
  
    doInstallCheck = true;
  
negative.code:     rev = "2565cc7b4d1dbce6bc7a5b3c4e72ae94be4712fe";
      sha256 = "0jiv4aj4m5750dqw9r8hizjkwiyxk4cg4grkr63sllsa2dpiibxw";
    };
  
    buildInputs = [ php ];
  
    nativeBuildInputs = [ bison flex installShellFiles ];
  
    postPatch = lib.optionalString stdenv.isAarch64 ''
      substituteInPlace support/xhpast/Makefile \
  