anchor.diff:    patchPhase = ''
       patch -p1 < ${./plugin-search-dirs.patch}
       substituteInPlace ./Makefile \
  -      --replace 'CXX = clang' "" \
  -      --replace 'LD = clang++' 'LD = $(CXX)' \
  -      --replace 'CXX = gcc' "" \
  -      --replace 'LD = gcc' 'LD = $(CXX)' \
  -      --replace 'ABCMKARGS = CC="$(CXX)" CXX="$(CXX)"' 'ABCMKARGS =' \
         --replace 'echo UNKNOWN' 'echo ${builtins.substring 0 10 src.rev}'
  -    substituteInPlace ./misc/yosys-config.in \
  -      --replace '/bin/bash' '${bash}/bin/bash'
  -    patchShebangs tests
  +
  +    chmod +x ./misc/yosys-config.in
  +    patchShebangs tests ./misc/yosys-config.in
     '';
   
     preBuild = let
  
positive.code:   };
  
    enableParallelBuilding = true;
    nativeBuildInputs = [ pkgconfig ];
    buildInputs = [ tcl readline libffi python3 bison flex protobuf zlib ];
  
    makeFlags = [ "ENABLE_PROTOBUF=1" "PREFIX=${placeholder "out"}"];
  
negative.code: , fetchFromGitHub
  , flex
  , libffi
  , pkg-config
  , protobuf
  , python3
  , readline
  