Troubleshooting tmux-yank nix package

The nixos yank tmux plugin package is outdated by a couple of years and i’m looking to update it.

 programs.tmux = {
    enable = true;
    plugins = with pkgs; [
      tmuxPlugins.yank
    ]
}

How would I override this package, allowing me to specify the git ref that this plugin is installed from?

Here is the packages:

tried something like this?

programs.tmux = {
    enable = true;
    plugins = with pkgs; [
      tmuxPlugins.sensible
      (tmuxPlugins.yank.overrideAttrs (oldAttrs: rec {
        src = fetchFromGitHub {
        owner = "tmux-plugins";
        repo = "tmux-yank";
        rev = "new ref";
        sha256 = "new hash";
      }))
  ];
}

The override looks OK from a general point of view, are you saying it’s not working? If it’s not working then you can copy the yank definition to your code because tmuxPlugins exposes mkTmuxPlugin.