mirror of
https://github.com/NixOS/rfcs.git
synced 2025-12-24 09:51:07 +01:00
Fix code examples syntax
This commit is contained in:
parent
7886f94240
commit
de1c4d2974
1 changed files with 4 additions and 4 deletions
|
|
@ -92,11 +92,11 @@ meta.maintainers = inherit (lib.maintainers) [ johndoe janedoe ];
|
|||
|
||||
And build inputs which are commonly extracted from attrsets:
|
||||
```nix
|
||||
buildInputs = inherit (darwin.apple_sdk.frameworks) [
|
||||
buildInputs = (inherit (darwin.apple_sdk.frameworks) [
|
||||
IOKit
|
||||
] ++ inherit (llvmPackages) [
|
||||
]) ++ (inherit (llvmPackages) [
|
||||
llvm
|
||||
];
|
||||
]);
|
||||
```
|
||||
|
||||
# Drawbacks
|
||||
|
|
@ -112,7 +112,7 @@ buildInputs = inherit (darwin.apple_sdk.frameworks) [
|
|||
|
||||
* Skillful use of `with` to avoid its drawbacks
|
||||
* Fine-grained attribute selection via existing (more verbose) language
|
||||
features, such as `builtins.attrValues (inherit (attrs) a b c;)`
|
||||
features, such as `builtins.attrValues { inherit (attrs) a b c; }`
|
||||
|
||||
# Unresolved questions
|
||||
[unresolved]: #unresolved-questions
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue