Skip to content
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

Closed
roblabla opened this issue Oct 15, 2015 · 4 comments
Closed

shebang size limit and custom install location #664

roblabla opened this issue Oct 15, 2015 · 4 comments

Comments

@roblabla
Copy link
Contributor

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 :

<clever> roblabla: maybe a directory containing all of the modules (as symlinks) so you only need one -I ?
<clever> roblabla: should be trivial, create a derivation that takes an array of perl deps, and returns a directory filled with symlinks
<clever> so your replacing a list of store paths with 1 store path
<clever> nix does the same thing to keep PATH sane
<clever> roblabla: you may be able to just reuse the same function that builds system-path
@vcunat
Copy link
Member

vcunat commented Nov 7, 2015

Related: NixOS/nixpkgs#10854 and linked stuff.

@domenkozar
Copy link
Member

@edolstra
Copy link
Member

This issue will go away as part of #341.

@vcunat
Copy link
Member

vcunat commented Aug 10, 2016

... 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants