[Nix-dev] Re: Buildenv hook mechanism

Ludovic Courtès ludo at gnu.org
Wed Jan 26 14:21:05 CET 2011


Hello,

The idea I had [0] was that ‘buildenv’ would check for a
‘nix-support/user-environment-hook’ script in each store path being used
and run it.

This hook would be similar in spirit to the setup hooks, except that the
latter augment environment variables (e.g., $INFOPATH), while the former
typically create new files (e.g., $userenv/share/info/dir).

What do you think?

Thanks,
Ludo’.

[0] http://thread.gmane.org/gmane.linux.distributions.nixos/976/focus=997




More information about the nix-dev mailing list