[Nix-dev] How to make nix-instantiate --eval-only eval everything?

Eelco Dolstra eelco at cs.uu.nl
Mon Jun 11 13:43:26 CEST 2007


Marc Weber wrote:
> Example:
>   let f = x : x+"abc"; in
>   builtins.head [ f "abc" ]
> results in
> || Function1("x",OpPlus(Var("x"),Str("abc",[])),NoPos)

Syntax strikes again, that `f "abc"' should be `(f "abc")'.  Now it's parsed as
a list with two elements (f and "abc").

However, in general, if you want everything to be evaluated, you can pass
--strict to nix-instantiate to get deep evaluation of lists and attribute sets.

-- 
Eelco Dolstra | http://www.cs.uu.nl/~eelco



More information about the nix-dev mailing list