mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-09 19:13:26 +03:00
lib.packagesFromDirectoryRecursive: document inputs better
Cut out redundant boilerplate, explain what the `callPackage` parameter is. Co-authored-by: Valentin Gagarin <valentin@gagarin.work>
This commit is contained in:
parent
13b953c864
commit
781b44b39d
1 changed files with 5 additions and 11 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue