Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielSidhion committed Mar 20, 2024
1 parent 56b5634 commit d784fc1
Showing 1 changed file with 56 additions and 0 deletions.
56 changes: 56 additions & 0 deletions lib/attrsets.nix
Original file line number Diff line number Diff line change
Expand Up @@ -579,6 +579,16 @@ rec {
Collect each attribute named `attr` from a list of attribute
sets. Sets that don't contain the named attribute are ignored.
# Inputs
`attr`
: The attribute name to get out of the sets.
`list`
: The list of attribute sets to go through
# Type
```
Expand Down Expand Up @@ -943,6 +953,16 @@ rec {
/**
Apply a function to each element in an attribute set, creating a new attribute set.
# Inputs
`f`
: A function that takes an attribute name and its value, and returns the new value for the attribute.
`attrset`
: The attribute set to iterate through.
# Type
```
Expand Down Expand Up @@ -1061,6 +1081,12 @@ rec {
This is because the `listToAttrs` removes duplicate names and doesn't preserve the order of the list.
:::
# Inputs
`set`
: The attribute set to deconstruct.
# Type
```
Expand Down Expand Up @@ -1742,6 +1768,12 @@ rec {
Get a package's `bin` output.
If the output does not exist, fallback to `.out` and then to the default.
# Inputs
`pkg`
: The package whose `bin` output will be retrieved.
# Type
```
Expand All @@ -1766,6 +1798,12 @@ rec {
Get a package's `lib` output.
If the output does not exist, fallback to `.out` and then to the default.
# Inputs
`pkg`
: The package whose `lib` output will be retrieved.
# Type
```
Expand All @@ -1790,6 +1828,12 @@ rec {
Get a package's `dev` output.
If the output does not exist, fallback to `.out` and then to the default.
# Inputs
`pkg`
: The package whose `dev` output will be retrieved.
# Type
```
Expand All @@ -1814,6 +1858,12 @@ rec {
Get a package's `man` output.
If the output does not exist, fallback to `.out` and then to the default.
# Inputs
`pkg`
: The package whose `man` output will be retrieved.
# Type
```
Expand All @@ -1836,6 +1886,12 @@ rec {
/**
Pick the outputs of packages to place in `buildInputs`
# Inputs
`pkgs`
: List of packages.
# Type
```
Expand Down

0 comments on commit d784fc1

Please sign in to comment.