How to link custom binaries in path?

I’ve been wondering for a while, how can I do the equivalent of symlinking a shell script or binary file in /usr/bin? Which doesn’t seem to work on NixOS (probably because its not in the PATH).

Also, as a bonus, is there a way to symbolically link binaries within the dev shell of a flake?

Not clear what you mean by “custom binaries” (your own? built on your system?) but generally you’d just write a little package for them, and include it in your system or user packages.

1 Like