From cd3d55ef9a0a3fa76e410dfd1537928b89825bc2 Mon Sep 17 00:00:00 2001 From: Attila Gulyas Date: Sat, 10 Aug 2024 09:08:39 -0400 Subject: [PATCH] Update lookup-path.md Updated this entry with 2 sentence taken from the `nix.dev` tutorial's [lookup paths](https://nix.dev/tutorials/nix-language#lookup-paths) section as that resource makes it way easier to understand this concept. Also added "_file system_" in front of "_path value_" because I found it an important clarification as "_path_" is an overloaded term. --- doc/manual/src/language/constructs/lookup-path.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/doc/manual/src/language/constructs/lookup-path.md b/doc/manual/src/language/constructs/lookup-path.md index 11b9fe88c2a..f2163860b59 100644 --- a/doc/manual/src/language/constructs/lookup-path.md +++ b/doc/manual/src/language/constructs/lookup-path.md @@ -4,7 +4,7 @@ > > *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. +A lookup path is an identifier with an optional path suffix that resolves to a file system [path value](@docroot@/language/types.md#type-path) if the identifier matches a search path entry. The value of a lookup path is determined by [`builtins.nixPath`](@docroot@/language/builtins.md#builtins-nixPath). @@ -12,6 +12,8 @@ See [`builtins.findFile`](@docroot@/language/builtins.md#builtins-findFile) for > **Example** > +> Generally, `` points to the file system path of some revision of [Nixpkgs](https://nix.dev/reference/glossary#term-Nixpkgs). +> > ```nix > >``` @@ -20,6 +22,8 @@ See [`builtins.findFile`](@docroot@/language/builtins.md#builtins-findFile) for > **Example** > +> `` points to the subdirectory `nixos` of the file system path `` points to: +> > ```nix > >```