mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-15 18:56:16 +02:00
eb7d7780b1
This is needed to avoid this https://github.com/mesonbuild/meson/issues/13774 when we go back to making our subproject directory `src`.
24 lines
716 B
Markdown
24 lines
716 B
Markdown
# Lookup path
|
|
|
|
> **Syntax**
|
|
>
|
|
> *lookup-path* = `<` *identifier* [ `/` *identifier* ]... `>`
|
|
|
|
A lookup path is an identifier with an optional path suffix that resolves to a [path value](@docroot@/language/types.md#type-path) if the identifier matches a search path entry in [`builtins.nixPath`](@docroot@/language/builtins.md#builtins-nixPath).
|
|
The algorithm for lookup path resolution is described in the documentation on [`builtins.findFile`](@docroot@/language/builtins.md#builtins-findFile).
|
|
|
|
> **Example**
|
|
>
|
|
> ```nix
|
|
> <nixpkgs>
|
|
>```
|
|
>
|
|
> /nix/var/nix/profiles/per-user/root/channels/nixpkgs
|
|
|
|
> **Example**
|
|
>
|
|
> ```nix
|
|
> <nixpkgs/nixos>
|
|
>```
|
|
>
|
|
> /nix/var/nix/profiles/per-user/root/channels/nixpkgs/nixos
|