Confusing errors/suggestions

I’ve been trying to use pw-jack, and I’ve enabled & installed pipewire.
However, I get:

-> % pw-jack
The program 'pw-jack' is currently not installed. You can install it
by typing:
  nix-env -iA nixpkgs.pipewire.out

Or run it once with:
  nix-shell -p pipewire.out --run ...
-> % nix-shell -p pipewire.out                                                                                                                                                                                          <<<

[nix-shell:~]$ pw-jack
The program 'pw-jack' is not in your PATH. You can make it available in an
ephemeral shell by typing:
  nix-shell -p pipewire

Which means that Nix provides invalid suggestions. I’m assuming this is derived from the outputs of a derivation.

However, pipewire also has an output named jack, so you actually need:

nix-shell -p pipewire.jack 

Which should’ve been the suggestion to try from Nix.

This can be improved.

23.05.419.3a70dd92993 (Stoat)