Signed-off-by: NotAShelf <raf@notashelf.dev> Change-Id: I7e54691aa3e81efcb495124d13e8c24a6a6a6964
11 lines
265 B
Nix
11 lines
265 B
Nix
# 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")
|