-
-
Notifications
You must be signed in to change notification settings - Fork 15.3k
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
execlineb: change execlineb wrapper to C script #71357
execlineb: change execlineb wrapper to C script #71357
Conversation
This is a followup to #71129 (comment) |
I still think this should be the only execline attribute we offer. There’s no need for |
You mean there is no need to export the unwrapped one? |
74922e6
to
16be980
Compare
Instead of using execlineb to define the execlineb wrapper, we replace it by a little C wrapper. This is mainly done because on non-Linux systems (i.e. mainly macOS), it is impossible for a shebang interpreter to be itself a shebang script. It is, however, perfectly fine to have a chain that goes shebang -> ELF -> shebang -> ELF -> … Co-Authored-By: Laurent Bercot <ska-skaware@skarnet.org>
16be980
to
f0d2d9c
Compare
@GrahamcOfBorg build execline |
> I still think this should be the only execline attribute we offer. There’s no need for `execline-with-builtins`, IMO.
You mean there is no need to export the unwrapped one?
Correct.
|
Ah, I mean we don’t lose anything and it can be helpful in some situations (e.g. if you want to get rid of the wrapper because you supply the tools manually already). |
This has been upstreamed to nixpkgs proper, as a C wrapper script, in NixOS/nixpkgs#71357 So we don’t even need bash to run execline anymore :P
Instead of using execlineb to define the execlineb wrapper, we replace
it by a little C wrapper.
This is mainly done because on non-Linux systems (i.e. mainly macOS),
it is impossible for a shebang interpreter to be itself a shebang
script.
It is, however, perfectly fine to have a chain that goes
shebang -> ELF -> shebang -> ELF -> …
sandbox
innix.conf
on non-NixOS)nix-shell -p nix-review --run "nix-review wip"
./result/bin/
)nix path-info -S
before and after)@luke-clifton @pmahoney