NixOS on ARM: Difference between revisions
imported>Samueldr m Fixups |
imported>Shoetten m fix qemu path on arch linux |
||
Line 529: | Line 529: | ||
<code>extra-platforms = aarch64-linux arm-linux</code> | <code>extra-platforms = aarch64-linux arm-linux</code> | ||
{{note| archlinux users can install <code>extra/qemu-system-aarch64</code>, <code>extra/qemu-user-static</code> and <code>extra/qemu-user-static-binfmt</code> | {{note| archlinux users can install <code>extra/qemu-system-aarch64</code>, <code>extra/qemu-user-static</code> and <code>extra/qemu-user-static-binfmt</code> | ||
and restart <code>systemd-binfmt.service</code>. Check if binfmt is loaded by <code>ls /proc/sys/fs/binfmt_misc/</code> (there must be <code>qemu-aarch64</code> or needed architecture) and add line <code><nowiki>extra-sandbox-paths = /usr/bin/qemu-aarch64</nowiki></code> to <code>/etc/nix/nix.conf</code>}} | and restart <code>systemd-binfmt.service</code>. Check if binfmt is loaded by <code>ls /proc/sys/fs/binfmt_misc/</code> (there must be <code>qemu-aarch64</code> or needed architecture) and add line <code><nowiki>extra-sandbox-paths = /usr/bin/qemu-aarch64-static</nowiki></code> to <code>/etc/nix/nix.conf</code>}} | ||
If you want to build just one specific package, use this: | If you want to build just one specific package, use this: |