Skip to content

Commit

Permalink
Update nix repl syntax in cross-compilation page (#1066)
Browse files Browse the repository at this point in the history
* Update nix repl comman in cross-compilation page

Co-authored-by: Valentin Gagarin <[email protected]>
  • Loading branch information
siddarth2810 and fricklerhandwerk authored Oct 15, 2024
1 parent 4be048e commit 05b0bbf
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions source/tutorials/cross-compilation.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 05b0bbf

Please sign in to comment.