On 01/23/2013 06:12 PM, Ludovic Courtès wrote: > Shea Levy <s...@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’. _______________________________________________ nix-dev mailing list nix-dev@lists.science.uu.nl http://lists.science.uu.nl/mailman/listinfo/nix-dev