Nix Installation Guide: Difference between revisions

imported>Jorsn
Section Proot: added hint about "file does not exist"-error and proot-termux
imported>Jorsn
update proot section: current static builds and "no such file or directory" errors
Line 119: Line 119:


==== Obtaining PRoot ====
==== Obtaining PRoot ====
Precompiled PRoot binaries of an old version can be downloaded from [https://github.com/proot-me/proot-static-build/releases here].  Make sure you set the executable bit of binaries you download.
Precompiled PRoot binaries for every commit can be downloaded from [https://gitlab.com/proot/proot/pipelines here] under the job artifacts.  Make sure you set the executable bit of binaries you download.


Alternatively, if you have another machine with nix installed, you can build static binaries as follows:
Alternatively, if you have another machine with nix installed, you can build static binaries as follows:
Line 133: Line 133:
The executable is to be found in <code>result/bin/proot</code>.
The executable is to be found in <code>result/bin/proot</code>.


If nix builds within proot fail on the <code>renameat2</code> system call with something like "rename: unsupported operation" or stating that existing files do not exist, then you can try termux's [https://github.com/termux/proot fork] of PRoot.
If nix builds within proot fail with something like "no such file or directory" while the files referenced do exist, you can set <code>PROOT_NO_SECCOMP=1</code> in your environment or try termux's [https://github.com/termux/proot fork] of PRoot.


==== Installing nix ====
==== Installing nix ====