anchor.diff:    ];
   
     postPatch = ''
  +    patchShebangs .
  +
       substituteInPlace meson.build --replace \
         "find_program('pkg-config')" \
         "find_program('${buildPackages.pkg-config.targetPrefix}pkg-config')"
  
positive.code:       "ftp://ftp.freedesktop.org/pub/mesa/${version}/mesa-${version}.tar.xz"
        "ftp://ftp.freedesktop.org/pub/mesa/older-versions/${branch}.x/${version}/mesa-${version}.tar.xz"
      ];
      sha256 = "1fx7nfvh1drfa6vv34j7ma944qbs014b0jwlbgqlnbjgcl87rrp9";
    };
  
    prePatch = "patchShebangs .";
  
    # TODO:
    #  revive ./dricore-gallium.patch when it gets ported (from Ubuntu), as it saved
  
negative.code:       url = "https://gitlab.freedesktop.org/mesa/mesa/commit/aebbf819df6d1e.patch";
        sha256 = "17248hyzg43d73c86p077m4lv1pkncaycr3l27hwv9k4ija9zl8q";
      })
    ] ++ optionals (stdenv.isDarwin && stdenv.isAarch64) [
      # Fix aarch64-darwin build, remove when upstreaam supports it out of the box.
      # See: https://gitlab.freedesktop.org/mesa/mesa/-/issues/1020
  