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 (#1066)
* Update nix repl comman in cross-compilation page Co-authored-by: Valentin Gagarin <valentin@gagarin.work>
This commit is contained in:
parent
4be048ee32
commit
05b0bbf038
|
@ -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`:
|
||||
|
||||
:::{note}
|
||||
[Starting with Nix 2.19](https://nix.dev/manual/nix/latest/release-notes/rl-2.19), `nix repl` requires the `-f` / `--file` flag:
|
||||
```shell-session
|
||||
$ nix repl -f '<nixpkgs>' -I nixpkgs=channel:nixos-23.11
|
||||
```
|
||||
:::
|
||||
|
||||
```shell-session
|
||||
$ nix repl '<nixpkgs>' -I nixpkgs=channel:nixos-23.11
|
||||
Welcome to Nix 2.18.1. Type :? for help.
|
||||
|
|
Loading…
Reference in a new issue