tests: add tests for lookup paths and imports
Signed-off-by: NotAShelf <raf@notashelf.dev> Change-Id: I7e54691aa3e81efcb495124d13e8c24a6a6a6964
This commit is contained in:
parent
a6aade6c11
commit
77aa67c7e0
6 changed files with 156 additions and 7 deletions
11
tests/import_simple.nix
Normal file
11
tests/import_simple.nix
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
# Test import expression
|
||||
# Import evaluates the file and returns its value
|
||||
|
||||
# Import a file that returns a simple value (42)
|
||||
import ./simple.nix
|
||||
|
||||
# Can also import lookup paths:
|
||||
# import <nixpkgs> { }
|
||||
|
||||
# Import with path expressions:
|
||||
# import (./dir + "/file.nix")
|
||||
Loading…
Add table
Add a link
Reference in a new issue