Skip to content

Commit

Permalink
fixup! lib.packagesFromDirectoryRecursive: Warn of limitation when us…
Browse files Browse the repository at this point in the history
…ed with scope(s)
  • Loading branch information
nbraud committed Dec 1, 2024
1 parent 168fcc8 commit 5ffd49e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions doc/redirects.json
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,9 @@
"sec-functions-library-filesystem": [
"index.html#sec-functions-library-filesystem"
],
"sec-functions-library-filesystem-packagesFromDirectoryRecursive-example-scope": [
"index.html#sec-functions-library-filesystem-packagesFromDirectoryRecursive-example-scope"
],
"sec-functions-library-fileset": [
"index.html#sec-functions-library-fileset"
],
Expand Down
4 changes: 2 additions & 2 deletions lib/filesystem.nix
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,7 @@ in
:::
:::{.example}
## Create a scope for the nix files found in a directory {#lib-filesystem-packagesFromDirectoryRecursive-example-scope}
## Create a scope for the nix files found in a directory {#sec-functions-library-filesystem-packagesFromDirectoryRecursive-example-scope}
```nix
lib.makeScope pkgs.newScope (
self: packagesFromDirectoryRecursive {
Expand Down Expand Up @@ -377,7 +377,7 @@ in
files or directories in the `directory`, but not to those in the same directory, nor those in a parent directory.
(except for the root `directory` passed to `packagesFromDirectoryRecursive`)
[creating a scope]: #lib-filesystem-packagesFromDirectoryRecursive-example-scope
[creating a scope]: #sec-functions-library-filesystem-packagesFromDirectoryRecursive-example-scope
:::
*/
packagesFromDirectoryRecursive =
Expand Down

0 comments on commit 5ffd49e

Please sign in to comment.