3
0
Fork 0
forked from mirrors/nixpkgs

doc: fix typo

This commit is contained in:
Sandro Jäckel 2021-10-28 10:48:34 +02:00
parent 19b87ec97d
commit dded550fcd
No known key found for this signature in database
GPG key ID: B1763F8651144063

View file

@ -181,7 +181,7 @@
rev = "${version}";
```
- Filling lists condionally _should_ be done with `lib.optional(s)` instead of using `if cond then [ ... ] else null` or `if cond then [ ... ] else [ ]`.
- Building lists conditionally _should_ be done with `lib.optional(s)` instead of using `if cond then [ ... ] else null` or `if cond then [ ... ] else [ ]`.
```nix
buildInputs = lib.optional stdenv.isDarwin iconv;