Signed-off-by: NotAShelf <raf@notashelf.dev> Change-Id: I9d6ce6a264780f215b1b57d947b5264c6a6a6964
14 lines
256 B
Nix
14 lines
256 B
Nix
# Test dynamic attribute names
|
|
let
|
|
key = "mykey";
|
|
value = 42;
|
|
in {
|
|
# Dynamic attribute with string interpolation
|
|
"${key}" = value;
|
|
|
|
# Another dynamic attribute
|
|
"${key}_suffix" = value + 1;
|
|
|
|
# Static attribute for comparison
|
|
static = 100;
|
|
}
|