anchor.diff:    patches = lib.optional ( plugin == "ql-qlf" ) ./symbiflow-pmgen.patch;
   
     preBuild = ''
  +    export LDFLAGS="-L${flatbuffers}/lib"
       mkdir -p ql-qlf-plugin/pmgen
     ''
     + lib.optionalString ( plugin == "ql-qlf" ) ''
  
positive.code: 
    # Providing a symlink avoids the need for patching the test makefile
    postUnpack = ''
      mkdir -p source/third_party/googletest/googletest/build/
      ln -s ${static_gtest}/lib source/third_party/googletest/googletest/build/lib
    '';
  
    makeFlags = [
  
negative.code: , yosys-symbiflow
  , uhdm
  , surelog
  , flatbuffers
  }: let
  
    src = fetchFromGitHub {
      owner  = "chipsalliance";
      repo   = "yosys-f4pga-plugins";
      rev    = "e23ff6db487da9ceea576c53ac33853566c3a84e";
      hash   = "sha256-HJ4br6lQwRrcnkLgV3aecr3T3zcPzA11MfxhRjwIb0I=";
    };
  
    version = "2022.11.07";
  
    # Supported symbiflow plugins.
    #
  