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:       exit 1
      fi
  
      if ! grep -q "YOSYS_VER := ${version}" Makefile; then
        echo "ERROR: yosys version in Makefile isn't equivalent to version of the nix package (${version}), failing."
        exit 1
      fi
  
negative.code:   };
  
    enableParallelBuilding = true;
    nativeBuildInputs = [ pkg-config ];
    buildInputs = [ tcl readline libffi python3 bison flex protobuf zlib ];
  
    makeFlags = [ "ENABLE_PROTOBUF=1" "PREFIX=${placeholder "out"}"];
  