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

This commit is contained in:
siddarth2810 2024-10-15 10:51:47 +05:30
parent 4be048ee32
commit a3a6c6d6a6
No known key found for this signature in database
GPG key ID: D62ACBC863294096

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`: 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.