brewery
notashelf /
30a33041714704c2981aabdc3f15e6fe7da51df8

nixir

public

Import-resolving Nix IR plugin

Star0tarball
clone
ssh://git@git.notashelf.dev:33/notashelf/nixir.git
tests/string_interp.nixNix19 lines377 B
1
# Test string interpolation
2
let
3
  name = "world";
4
  x = 42;
5
  bool_val = true;
6
in
7
  {
8
    # Simple interpolation
9
    greeting = "Hello ${name}!";
10
11
    # Multiple interpolations
12
    multi = "x is ${x} and name is ${name}";
13
14
    # Nested expression
15
    nested = "Result: ${if bool_val then "yes" else "no"}";
16
17
    # Just a string (no interpolation)
18
    plain = "plain text";
19
  }