Skip to content

Commit

Permalink
quote examples commands
Browse files Browse the repository at this point in the history
  • Loading branch information
cottand committed Aug 30, 2024
1 parent f9b2002 commit 736a5f8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions examples/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,21 +19,21 @@ nix flake show

**To compile `shellScriptEif` for your current architecture:**
```bash
nix build .#shellScriptEif
nix build '.#shellScriptEif'
```
Note this will produce an `aarch64-linux` EIF if you are running it in an ARM Mac.

Assuming you have a linux [remote builder](https://nix.dev/manual/nix/2.18/advanced-topics/distributed-builds) available,
**to compile EIFs natively for `x86_64-linux` on an ARM Mac:**

```bash
nix build .#packages.x86_64-linux.shellScriptEif
nix build '.#packages.x86_64-linux.shellScriptEif'
```

If you do not have remote builders, you can always try to cross-compile. Keep in mind this requires all dependencies
of your EIF to be cross-compiled too (which is tricky for bash scripts). **To cross-compile an EIF from your local system
to `x86_64-linux`:**

```bash
nix build .#x86_64-linux-shellScriptEif
nix build '.#x86_64-linux-shellScriptEif'
```

0 comments on commit 736a5f8

Please sign in to comment.