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

Ludovic Courtès ludo at gnu.org
Thu Jan 24 12:34:57 CET 2013


Shea Levy <shea at shealevy.com> skribis:

> 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.

Right, so you can import it, but you just can’t build it.  :-)

Ludo’.


More information about the nix-dev mailing list