brewery
notashelf /
359a7076636a1eac904f37f418d71ddc5f89c023

nixir

public

Import-resolving Nix IR plugin

Star0tarball
clone
ssh://git@git.notashelf.dev:33/notashelf/nixir.git
tests/fixtures/dynamic_attr_full.nixNix14 lines256 B
1
# Test dynamic attribute names
2
let
3
  key = "mykey";
4
  value = 42;
5
in {
6
  # Dynamic attribute with string interpolation
7
  "${key}" = value;
8
9
  # Another dynamic attribute
10
  "${key}_suffix" = value + 1;
11
12
  # Static attribute for comparison
13
  static = 100;
14
}