[Nix-dev] Make wrappers be binaries instead of shell scripts?

Wout Mertens wout.mertens at gmail.com
Tue Nov 18 14:32:55 CET 2014


Hi all,

I'm wondering if it wouldn't be better to make the application wrapper
scripts generated by makeWrapper be binaries that do the environment
massaging and config in binary code before exec() ing the wrapped program.

The advantages would be that the wrapper itself loads very fast since all
the shell init and shell parsing is skipped. You also get precise control
over the execv() call or other desired factors.

The disadvantages are that you can't read what a wrapper does and the
wrapper file is bigger (about 4KB in my tests for a simple execv()).

Thoughts?

Wout.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.science.uu.nl/pipermail/nix-dev/attachments/20141118/c2287969/attachment.html 


More information about the nix-dev mailing list