ITADN

Create new attributes inside lambda

#6Opentomberek 创建于 2022-05-26
T
tomberekcommented
Situation: ``` { outputs = {...}: { a = {}; }; } ``` Running `nix-editor test.nix outputs.a -v 1` produces: ``` { outputs = {...}: { a = 1; }; } ``` as expected. But `nix-editor test.nix outputs.a.b -v 1` produces: ``` { outputs = {...}: { a = {}; }; outputs.a.b = 1; } ``` where the attrset was not placed into the function call, but on the outside.
5 条评论