NixOS / nix

Nix, the purely functional package manager
https://nixos.org/
GNU Lesser General Public License v2.1
12.58k stars 1.51k forks source link

failed instsllation on Termux #11616

Open Juhayer-Al-Wasif opened 3 weeks ago

Juhayer-Al-Wasif commented 3 weeks ago
~~> Setting up the build group nixbld

---- sudo execution ------------------------------------------------------------
I am executing:

    $ sudo groupadd -g 30000 --system nixbld

Create the Nix build group, nixbld

/data/data/com.termux/files/usr/tmp/nix-binary-tarball-unpack.q6Wbco15l0/unpack/nix-2.24.9-aarch64-linux/install-multi-user: line 364: sudo: command not found

---- oh no! --------------------------------------------------------------------
Oh no, something went wrong. If you can take all the output and open
an issue, we'd love to fix the problem so nobody else has this issue.
Kamillaova commented 3 weeks ago

TLDR: You can't do this.

  1. you can't use sudo
  2. you probably can't add user/group
  3. you can't use regular glibc/musl, you need to use bionic or glibc with android-specific patches
  4. without proot there will be no /nix/store

short answer: use nix-on-droid.