New comment by mephistopheles-8 on void-packages repository https://github.com/void-linux/void-packages/issues/18970#issuecomment-585858384 Comment: I also had issues getting Nix to work out-of-the box on Void. The problems with `bash` and `xz` stem from those programs not being linked in the Nix sandbox. I temporarily added `build-use-sandbox=false` to `/etc/nix/nix.conf` before running `nix-channel --update`. There is an option, `build-sandbox-paths`, that may be of interest. Mine is set to the following, but I've only done limited testing and have not verified that it matters: build-sandbox-paths = /bin/sh=/bin/sh /usr/bin/bash=/usr/bin/bash /usr/bin/bzip2=/usr/bin/bzip2 /usr/bin/env=/usr/bin/env /usr/bin/gzip=/usr/bin/gzip /usr/bin/mkdir=/usr/bin/mkdir /usr/bin/mv=/usr/bin/mv /usr/bin/tar=/usr/bin/tar /usr/bin/tr=/usr/bin/tr /usr/bin/xz=/usr/bin/xz The following might be relevant: https://github.com/NixOS/nix/issues/3337 https://github.com/NixOS/nix/issues/2673 https://github.com/asppsa/archlinux-nix