anchor.diff:      chmod -R u+w .
       make config-${if stdenv.cc.isClang or false then "clang" else "gcc"}
       echo 'ABCEXTERNAL = ${abc-verifier}/bin/abc' >> Makefile.conf
  -
  -    # we have to do this ourselves for some reason...
  -    (cd misc && ${protobuf}/bin/protoc --cpp_out ../backends/protobuf/ ./yosys.proto)
   
       if ! grep -q "ABCREV = ${shortAbcRev}" Makefile; then
         echo "ERROR: yosys isn't compatible with the provided abc (${shortAbcRev}), failing."
  
positive.code: , libffi
  , makeWrapper
  , pkg-config
  , protobuf
  , python3
  , readline
  , symlinkJoin
  
negative.code:     tcl
      readline
      libffi
      zlib
      (python3.withPackages (pp: with pp; [
        click
      ]))
    ];
  
    makeFlags = [ "PREFIX=${placeholder "out"}"];
  
    patches = [
      ./plugin-search-dirs.patch
  