2024-03-08 08:50:55 +00:00
|
|
|
let
|
|
|
|
inherit (builtins.trace "used" { a = 1; b = 2; }) a b;
|
|
|
|
x.c = 3;
|
|
|
|
y.d = 4;
|
2024-03-08 08:52:15 +00:00
|
|
|
|
|
|
|
merged = {
|
|
|
|
inner = {
|
|
|
|
inherit (y) d;
|
|
|
|
};
|
|
|
|
|
|
|
|
inner = {
|
|
|
|
inherit (x) c;
|
|
|
|
};
|
|
|
|
};
|
2024-03-08 08:50:55 +00:00
|
|
|
in
|
2024-03-08 08:52:15 +00:00
|
|
|
[ a b rec { x.c = []; inherit (x) c; inherit (y) d; __overrides.y.d = []; } merged ]
|