-
-
Notifications
You must be signed in to change notification settings - Fork 18.6k
PATH should prioritize user defined packages #38657
Copy link
Copy link
Closed
Labels
2.status: stalehttps://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.mdhttps://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md6.topic: darwinRunning or building packages on DarwinRunning or building packages on Darwin6.topic: developer experiencenixpkgs development workflownixpkgs development workflow
Metadata
Metadata
Assignees
Labels
2.status: stalehttps://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.mdhttps://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md6.topic: darwinRunning or building packages on DarwinRunning or building packages on Darwin6.topic: developer experiencenixpkgs development workflownixpkgs development workflow
Fields
Give feedbackNo fields configured for issues without a type.
When I'm trying to run a script using
nix-shell,$PATHcontains several folders starting withcoreutilsfrom standard environment:Unfortunately, since
coreutilsis in front, it will be looked into first. That means, in case of a conflict, binaries fromcoreutilswill always be picked.In the case above,
shell_cmdscontainsmktempfor Mac OS which is slightly different from GNU's one, but there is no easy way to make the script insidenix-shellto usemktempfromshell_cmds.I think a solution here is to always put packages defined by user in front of the
PATHand put all the default stuff in the end.