-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
gcc always present in nix-shell and overrides clang #5117
Comments
I also noticed that pointing
|
I marked this as stale due to inactivity. → More info |
This issue has been mentioned on NixOS Discourse. There might be relevant details there: |
ref: #9836 |
ref: NixOS/nixpkgs#283248 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Is your feature request related to a problem? Please describe.
When creating a nix-shell with -p, even with --pure, gcc will be included in the $PATH and it will take precedence over any explicitly listed package. This makes it very annoying to try to build a program with clang instead of gcc and requires creating a shell.nix or setting cmake variables to work around.
Describe the solution you'd like
nix-shell is currently created with pkgs.runCommandCC, use pkgs.runCommand instead to just remove gcc
Describe alternatives you've considered
Getting the package arguments to be in the $PATH before the default packages would also work without being a potentially breaking change
The text was updated successfully, but these errors were encountered: