mirror of
https://github.com/NixOS/nix.dev.git
synced 2024-10-18 00:06:26 -04:00
Update nix repl syntax in cross-compilation page
This commit is contained in:
parent
4be048ee32
commit
a3a6c6d6a6
|
@ -85,6 +85,13 @@ It's only possible to cross compile between `aarch64-darwin` and `x86_64-darwin`
|
||||||
|
|
||||||
It is possible to explore them in `nix repl`:
|
It is possible to explore them in `nix repl`:
|
||||||
|
|
||||||
|
:::{note}
|
||||||
|
Later versions of `nix repl` require `-f` flag:
|
||||||
|
```shell-session
|
||||||
|
$ nix repl -f '<nixpkgs>' -I nixpkgs=channel:nixos-23.11
|
||||||
|
```
|
||||||
|
:::
|
||||||
|
|
||||||
```shell-session
|
```shell-session
|
||||||
$ nix repl '<nixpkgs>' -I nixpkgs=channel:nixos-23.11
|
$ nix repl '<nixpkgs>' -I nixpkgs=channel:nixos-23.11
|
||||||
Welcome to Nix 2.18.1. Type :? for help.
|
Welcome to Nix 2.18.1. Type :? for help.
|
||||||
|
|
Loading…
Reference in a new issue