brewery
notashelf /
2a005574d3d6791783fb70fd460753557d3e3df2

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")