How to override a module in nix mesa-git (both a merge request / path and latest commit)

basically I want to override mesa-git module here: https://github.com/chaotic-cx/nyx/blob/9b54befbe7993ed2abe91f4d76e259b3e8f9d922/modules/nixos/mesa-git.nix
I need to use my own package to test this merge request: Sign in · GitLab
basically I reported a problem so I’m responsible for testing that mr
I want something like this basically

chaotic.mesa-git.package = pkgs.mesa-git.overrideAttrs={
rev=blakfdjd
sha=ksldfksdjl
};

I need to test both latest commit and that mr as soon as possible so yeah help
I’m asking this question in a bunch of places all over the nix community
I hope it doesn’t take long to answer if no one has answered my question by the time
I find a solution I’ll make sure to post it here since here is the only place that will be scraped by google