You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello,
I'm working through the examples in the book, and I found a problem with running a macOS builder. For some reason, the mkfs binary is compiled for linux:
rafal@memebook> nix run 'nixpkgs#darwin.builder'
Disk image do not exist, creating the virtualisation disk image...
Formatting '/tmp/tmp.Xq3GkwCrEL', fmt=raw size=21474836480
/nix/store/4mx7h23lbrf1csjmnf5fcd9nvzgrya2n-nixos-vm/bin/run-nixos-vm: line 14: /nix/store/sh0plpi3ddar4g7ws7ww37r5kv0rg51j-e2fsprogs-1.47.0-bin/bin/mkfs.ext4: cannot execute binary file: Exec format error
rafal@memebook> file /nix/store/sh0plpi3ddar4g7ws7ww37r5kv0rg51j-e2fsprogs-1.47.0-bin/bin/mkfs.ext4
/nix/store/sh0plpi3ddar4g7ws7ww37r5kv0rg51j-e2fsprogs-1.47.0-bin/bin/mkfs.ext4: ELF 64-bit LSB executable, ARM aarch64, version 1 (SYSV), dynamically linked, interpreter /nix/store/n8hgw8lja68x3zhv2ww9a7b6npbkvh21-glibc-2.37-8/lib/ld-linux-aarch64.so.1, for GNU/Linux 3.10.0, not stripped
I had nix already installed, so I didn't follow your setup. Here is my nix.conf for reference:
# WARNING: this file is generated from the nix.* options in
# your nix-darwin configuration. Do not edit it!
allowed-users = *
auto-optimise-store = false
build-users-group = nixbld
builders =
cores = 0
extra-sandbox-paths =
extra-trusted-users = rafal
max-jobs = auto
require-sigs = true
sandbox = false
sandbox-fallback = false
substituters = https://cache.nixos.org/ https://cache.nixos.org/
trusted-public-keys = cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY= cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
trusted-substituters =
trusted-users = rafal
experimental-features = nix-command flakes
I tried to troubleshoot it on my own, but I can't find any clue. Maybe you have an idea of what may be the issue?
The text was updated successfully, but these errors were encountered:
Hello,
I'm working through the examples in the book, and I found a problem with running a macOS builder. For some reason, the mkfs binary is compiled for linux:
I had nix already installed, so I didn't follow your setup. Here is my nix.conf for reference:
I tried to troubleshoot it on my own, but I can't find any clue. Maybe you have an idea of what may be the issue?
The text was updated successfully, but these errors were encountered: