Lookup path

Syntax

lookup-path = < identifier [ / identifier ]... >

A lookup path is an identifier with an optional path suffix that resolves to a path value if the identifier matches a search path entry.

The value of a lookup path is determined by builtins.nixPath.

See builtins.findFile for details on lookup path resolution.

Example

<nixpkgs>
/nix/var/nix/profiles/per-user/root/channels/nixpkgs

Example

<nixpkgs/nixos>
/nix/var/nix/profiles/per-user/root/channels/nixpkgs/nixos