-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
shebang size limit and custom install location #664
Comments
Related: NixOS/nixpkgs#10854 and linked stuff. |
This issue will go away as part of #341. |
... but I don't think it will help much, as the same nixpkgs issue will remain. |
zolodev
pushed a commit
to zolodev/nix
that referenced
this issue
Jan 1, 2024
Fix broken Diataxis links
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I recently attempted installing nix in a custom install location (/Volumes/LIBFTBLABLA/mac/nix/store). The problem is, several of nix's script have huge shebang lines which break the 512 character limit mac enforces on the shebang, leading to the shebang being ignored and the script malfunctioning. The scripts in question reside in https://github.com/NixOS/nix/tree/master/scripts.
I have made a temporary patch to fix my imminent problem, which can be found at https://gist.github.com/anonymous/3ec0e019763e9ec04ce0 . It simply embeds the offending scripts into a bash script, thus not being limited by the shebang. I am using it locally, and it seems to be working fine.
clever
on irc suggested a better solution :The text was updated successfully, but these errors were encountered: