[Nix-dev] Re: Handle runtime dependencies
Wouter db
uu at denbreejen.net
Mon Mar 17 15:48:10 CET 2008
This must be a disadvantage of makeWrapper then (i havent looked at it).
But at beforehand delaring what dependencies should be excluded from the
hash calculation is i think unwanted and error prone (i would say
impure), you never really know if the build process uses them or not.
Wouter
Ludovic Courtès schreef:
> Hi,
>
> Wouter db <uu at denbreejen.net> writes:
>
>
>> I get your idea, but with really runtime dependencies, you do not need
>> to feed them to the component expression at all (since the component
>> does not use these dependencies at build time anyway), so you only
>> declare them in the wrapper.
>>
>
> But the wrapper is created from the Nix expression itself, assuming
> you're using `makeWrapper' in the `postInstall' stage, so the "run-time
> dependencies" must be provided as build inputs since they are at least
> used by `wrapProgram', for instance.
>
> Or did I miss something?
>
> Thanks,
> Ludovic.
>
> _______________________________________________
> nix-dev mailing list
> nix-dev at cs.uu.nl
> https://mail.cs.uu.nl/mailman/listinfo/nix-dev
>
More information about the nix-dev
mailing list