1
0
Fork 0
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:
Siddarth 2024-10-15 16:47:24 +05:30 committed by GitHub
parent 4be048ee32
commit 05b0bbf038
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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.