anchor.diff:        exit 1
       fi
   
  -    if ! grep -q "YOSYS_VER := ${version}" Makefile; then
  +    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
  
positive.code: , fetchFromGitHub
  , flex
  , libffi
  , pkgconfig
  , protobuf
  , python3
  , readline
  
negative.code:   patchPhase = ''
      patch -p1 < ${./plugin-search-dirs.patch}
      substituteInPlace ./Makefile \
        --replace 'echo UNKNOWN' 'echo ${builtins.substring 0 10 src.rev}'
  
      chmod +x ./misc/yosys-config.in
      patchShebangs tests ./misc/yosys-config.in
    '';
  
    preBuild = let
  