[Nix-dev] GNU Guix 0.1 released (alpha)

Shea Levy shea at shealevy.com
Thu Jan 24 00:19:41 CET 2013


On 01/23/2013 06:12 PM, Ludovic Courtès wrote:
> Shea Levy <shea at shealevy.com> skribis:
>
>> On 01/21/2013 05:39 AM, Ludovic Courtès wrote:
> [...]
>
>>> In theory yes, because ‘import’ in the Nix language can import .drv
>>> files–a little-known feature.  ;-)
>>>
>>> In practice, though, it can only do that if the .drv defines an
>>> environment variable called ‘name’
>> Why do you say this?
>  From ‘prim_derivationStrict’:
>
>      if (attr == args[0]->attrs->end())
>          throw EvalError("required attribute `name' missing");

Sure, but importing .drvs doesn't go through derivationStrict. It just 
reads the outPaths and drvPath directly from the .drv file.

> Thanks,
> Ludo’.



More information about the nix-dev mailing list