Skip to content

Commit

Permalink
lib.packagesFromDirectoryRecursive: document inputs better
Browse files Browse the repository at this point in the history
Cut out redundant boilerplate, explain what the `callPackage` parameter is.

Co-authored-by: Valentin Gagarin <[email protected]>
  • Loading branch information
nbraud and fricklerhandwerk committed Dec 3, 2024
1 parent 13b953c commit 781b44b
Showing 1 changed file with 5 additions and 11 deletions.
16 changes: 5 additions & 11 deletions lib/filesystem.nix
Original file line number Diff line number Diff line change
Expand Up @@ -318,18 +318,12 @@ in
# Inputs
Structured function argument
`callPackage`
: The function used to convert a Nix file's path into a leaf of the attribute set.
It is typically the `callPackage` function, taken from either `pkgs` or a new scope corresponding to the `directory`.
: Attribute set containing the following attributes.
Additional attributes are ignored.
`callPackage`
: `pkgs.callPackage`
`directory`
: The directory to read package files from
`directory`
: The directory to read package files from.
# Examples
Expand Down

0 comments on commit 781b44b

Please sign in to comment.