Hi, I’d like to propose a PR to nixpkgs that exposes the binary built in nixpkgs/pkgs/misc/tmux-plugins/tmux-fingers/default.nix
I see three possible ways to approach this:
-
Split the binary into another package (there’s a precedent in nixpkgs/pkgs/misc/tmux-plugins/tmux-thumbs/default.nix), but I don’t think this would work here because the binary is tied to the tmux plugin, and might not be useful as a standalone (could be wrong though)
-
Use a
passthrulike:passthru = { fingers-binary = "${fingers}/bin/tmux-fingers"; };and then
pkgs.tmuxPlugins.fingers.fingers-binary -
Put the binary as an output in
$out/binpostInstall = '' mkdir -p $out/bin cp ${fingers}/bin/tmux-fingers $out/bin/ '';and use it like
${pkgs.tmuxPlugins.fingers}/bin/tmux-fingers
What could be the best option? Thanks