mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-22 14:06:16 +02:00
9 lines
160 B
Nix
9 lines
160 B
Nix
let
|
|
a = 5;
|
|
b = 1;
|
|
c = 2;
|
|
concat = a: b: "${a}${b}";
|
|
nested.attr.ab = 10;
|
|
|
|
add = a: b: a + b;
|
|
in add nested.attr.${concat "a" "b"} $ add b $ add a c
|