You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Unfortunately, since coreutils is in front, it will be looked into first. That means, in case of a conflict, binaries from coreutils will always be picked.
In the case above, shell_cmds contains mktemp for Mac OS which is slightly different from GNU's one, but there is no easy way to make the script inside nix-shell to use mktemp from shell_cmds.
I think a solution here is to always put packages defined by user in front of the PATH and put all the default stuff in the end.
The text was updated successfully, but these errors were encountered:
When I'm trying to run a script using
nix-shell
,$PATH
contains several folders starting withcoreutils
from standard environment:Unfortunately, since
coreutils
is in front, it will be looked into first. That means, in case of a conflict, binaries fromcoreutils
will always be picked.In the case above,
shell_cmds
containsmktemp
for Mac OS which is slightly different from GNU's one, but there is no easy way to make the script insidenix-shell
to usemktemp
fromshell_cmds
.I think a solution here is to always put packages defined by user in front of the
PATH
and put all the default stuff in the end.The text was updated successfully, but these errors were encountered: