АБ
Size: a a a
АБ
АБ
inherit
нужных значний в скоуп через let
MG
АБ
with pkgs; [ bash coreutils hello ];
MG
VK
MG
АБ
АБ
АБ
nix-repl> a = { foo = 10; }
nix-repl> b = { foo = 20; }
nix-repl> with b; with a; foo
10
MG
АБ
override
?MG
nix-repl> a = { foo = 10; }
nix-repl> b = { foo = 20; }
nix-repl> with b; with a; foo
10
АБ
АБ
АБ
nix-repl> l = { foo }: with a; foo
nix-repl> l { foo = 20; }
20
nix-repl> let foo = 20; in with a; foo
20