Trying to install old version of xorg

I need to revert xorg to 1.20.5 to make displaylink monitors to work. I have this overlay:

final: prev: {
  xorg = (prev.xorg or { }) // {
    xorgserver = (prev.xorg.xorgserver or { }) // prev.xorg.xorgserver.overrideAttrs (old: {
      #nativeBuildInputs = [ prev.breakpointHook ];
      name = "xorg-server-1.20.5";
      patches = old.patches ++ [ ./a57729d3180ee4bc3ae012cfd03fe5188d858a83.diff ./e16eb696f2238796827794d2d3b23f268cf4daf0.diff ];
      src = prev.fetchurl {
          url = mirror://xorg/individual/xserver/xorg-server-1.20.5.tar.bz2;
          sha256 = "17dc3g8cc55nbkx3np64dsz04n621dnzjmcc9wys0xbyyd1q47d8";

When I try to build I get the error:

error: builder for '/nix/store/kcs9a27a23vj25gxql75kmq22zs0b9fv-xorg-server-1.20.5.drv' failed with exit code 1;
       last 10 log lines:
       > configure: error: Package requirements (glproto >= 1.4.17 gl >= 9.2.0) were not met:
       > Requested 'gl >= 9.2.0' but version of gl is 1.3.3
       > Consider adjusting the PKG_CONFIG_PATH environment variable if you
       > installed software in a non-standard prefix.
       > Alternatively, you may set the environment variables GL_CFLAGS
       > and GL_LIBS to avoid the need to call pkg-config.
       > See the pkg-config man page for more details.
       For full logs, run 'nix log /nix/store/kcs9a27a23vj25gxql75kmq22zs0b9fv-xorg-server-1.20.5.drv'.

I have fixed it with the two patches to the files and glx/ in the overlay, but it seems that are not applied. If I uncoment the line of breakpointHook and enter in build environment I see that are correct applied.

What I am doing grong?

Tanks in advice

Patches over need autoreconfHook.

Now I have to fix build errors.