[Nix-dev] Re: Buildenv hook mechanism

Ludovic Courtès ludo at gnu.org
Wed Jan 26 15:33:13 CET 2011


Hi,

Eelco Dolstra <e.dolstra at tudelft.nl> writes:

> On 01/26/2011 02:21 PM, Ludovic Courtès wrote:
>
>> 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.
>
> Yes, sounds reasonable.  But the big question is what package should declare the
> hook.  For instance, for the GTK icon cache problem, should the hook be declared
> by gtk+, or by every GTK-based package that has a share/icons directory?

I’d say GTK+, as for setup-hook.

> In the former case, this means that gtk+ has to be in the user
> environment (or be propagated by some other package).

Right.  Or buildenv could collect the list of hooks in all the
dependencies of the packages being installed, and run them once.
Overkill?

Thanks,
Ludo’.




More information about the nix-dev mailing list