mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-28 00:26:15 +02:00
10 lines
160 B
Nix
10 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
|