mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-10 03:23:29 +03:00
lib.packagesFromDirectoryRecursive: More precise type signature
Pulled above the inputs section to avoid duplicating information.
This commit is contained in:
parent
595e00cbca
commit
13b953c864
1 changed files with 10 additions and 10 deletions
|
@ -306,6 +306,16 @@ in
|
||||||
As a result, directories with no `.nix` files (including empty
|
As a result, directories with no `.nix` files (including empty
|
||||||
directories) will be transformed into empty attribute sets.
|
directories) will be transformed into empty attribute sets.
|
||||||
|
|
||||||
|
# Type
|
||||||
|
|
||||||
|
```
|
||||||
|
packagesFromDirectoryRecursive :: {
|
||||||
|
callPackage :: Path -> {} -> a,
|
||||||
|
directory :: Path,
|
||||||
|
...
|
||||||
|
} -> AttrSet
|
||||||
|
```
|
||||||
|
|
||||||
# Inputs
|
# Inputs
|
||||||
|
|
||||||
Structured function argument
|
Structured function argument
|
||||||
|
@ -317,20 +327,10 @@ in
|
||||||
|
|
||||||
: `pkgs.callPackage`
|
: `pkgs.callPackage`
|
||||||
|
|
||||||
Type: `Path -> AttrSet -> a`
|
|
||||||
|
|
||||||
`directory`
|
`directory`
|
||||||
|
|
||||||
: The directory to read package files from
|
: The directory to read package files from
|
||||||
|
|
||||||
Type: `Path`
|
|
||||||
|
|
||||||
|
|
||||||
# Type
|
|
||||||
|
|
||||||
```
|
|
||||||
packagesFromDirectoryRecursive :: AttrSet -> AttrSet
|
|
||||||
```
|
|
||||||
|
|
||||||
# Examples
|
# Examples
|
||||||
:::{.example}
|
:::{.example}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue