How to use pkgs.yarn2nix-moretea.linkNodeModulesHook in Nix shell?

I’m trying to create a Nix shell with a set of Yarn packages so that the package executables are on my $PATH, but I can’t seem to get it to work. My shell.nix has

yarnPackages = pkgs.yarn2nix-moretea.mkYarnWorkspace {
  src = ./.;
  shellHook = pkgs.yarn2nix-moretea.linkNodeModulesHook;


pkgs.mkShell {
  buildInputs = builtins.attrValues yarnPackages;

However, linkNodeModulesHook doesn’t create a node_modules in the project directory, and mkYarnWorkspace seems to return only the packages, not the shellHook. I can’t find any documentation or examples using it, but maybe someone here can help?

Update: filed upstream issue