brewery
notashelf /
85a865af471a9c9be44dd376f5984f9560daf868

nixir

public

Import-resolving Nix IR plugin

Star0tarball
clone
ssh://git@git.notashelf.dev:33/notashelf/nixir.git
tests/dynamic_attrs.nixNix15 lines369 B
1
# Test dynamic attribute names
2
# Note: Full dynamic attrs require runtime evaluation
3
# For now, testing that syntax is recognized
4
let
5
  key = "mykey";
6
in {
7
  # Static attribute for comparison
8
  static = "value";
9
10
  # Dynamic attribute name (basic string interpolation)
11
  # "${key}" = "dynamic_value";
12
13
  # For now, use workaround with static names
14
  mykey = "works";
15
}