mirror of
https://github.com/NixOS/rfcs.git
synced 2025-11-25 19:51:12 +01:00
Add a repl-like interaction example
This commit is contained in:
parent
93ef1761ab
commit
2bf1c259b2
1 changed files with 13 additions and 0 deletions
|
|
@ -164,6 +164,19 @@ stdenv.mkDerivation {
|
|||
|
||||
```
|
||||
|
||||
In a `nix repl`:
|
||||
|
||||
```
|
||||
nix-repl> :l <nixpkgs>
|
||||
Added XXXXXX variables.
|
||||
|
||||
nix-repl> pkgs.bochs.meta.categories
|
||||
[ { ... } ]
|
||||
|
||||
nix-repl> map (z: z.name) pkgs.bochs.meta.categories
|
||||
[ "debugger" "emulator" ]
|
||||
```
|
||||
|
||||
# Drawbacks
|
||||
[drawbacks]: #drawbacks
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue