brewery
notashelf /
51305298ee988baf9f786406dad193b1ee310f28

nixir

public

Import-resolving Nix IR plugin

Star0tarball
clone
ssh://git@git.notashelf.dev:33/notashelf/nixir.git
tests/integration/ir_builtins_test.nixNix13 lines289 B
1
# Test our custom IR builtins
2
let
3
  # Test nixIR_info
4
  info = builtins.nixIR_info;
5
6
  # Test nixIR_compile
7
  compiled = builtins.nixIR_compile "let x = 10; in x + 5";
8
9
  # Test that normal builtins still work
10
  list = builtins.map (x: x * 2) [1 2 3];
11
in {
12
  inherit info compiled list;
13
}