brewery
notashelf /
56f15d749edc0a1db07b6438d031d82c65a20f46

nixir

public

Import-resolving Nix IR plugin

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