notes/os/linux/nixos/features/el/inherit.txt
Ihar Hancharenka 5dff80e88e first
2023-03-27 16:52:17 +03:00

28 строки
329 B
Plaintext

https://nixos.org/manual/nix/stable/language/constructs.html#inheriting-attributes
let
x = 123;
in {
inherit x;
y = 456;
}
is equivalent to
let
x = 123;
in {
x = x;
y = 456;
}
...
inherit x y z;
inherit (src-set) a b c;
...
is equivalent to
...
x = x; y = y; z = z;
a = src-set.a; b = src-set.b; c = src-set.c;