brewery
notashelf /
dd79db1f86e57506497fa1b18fbab0cfd5101b64

nixir

public

Import-resolving Nix IR plugin

Star0tarball
clone
ssh://git@git.notashelf.dev:33/notashelf/nixir.git
tests/import_simple.nixNix11 lines265 B
1
# Test import expression
2
# Import evaluates the file and returns its value
3
4
# Import a file that returns a simple value (42)
5
import ./simple.nix
6
7
# Can also import lookup paths:
8
# import <nixpkgs> { }
9
10
# Import with path expressions:
11
# import (./dir + "/file.nix")