nix-community / nix-on-droid

Nix-enabled environment for your Android device. [maintainers=@t184256,@Gerschtli]
https://nix-on-droid.unboiled.info
MIT License
1.16k stars 65 forks source link

22.11 #234

Closed Gerschtli closed 1 year ago

Gerschtli commented 1 year ago

PR to prepare everything for 22.11.

Currently, bootstrap is not building:

$> nix build .#bootstrapZip --impure -L
nix-directory> unpacking sources
nix-directory> unpacking source archive /nix/store/4hk7sv1pdp8ip0ssnk88ri91fd2d9k4p-nix-2.11.1-aarch64-linux.tar.xz
nix-directory> source root is nix-2.11.1-aarch64-linux
nix-directory> setting SOURCE_DATE_EPOCH to timestamp 1663257321 of file nix-2.11.1-aarch64-linux/install-systemd-multi-user.sh
nix-directory> patching sources
nix-directory> configuring
nix-directory> no configure script, doing nothing
nix-directory> building
nix-directory> terminate called after throwing an instance of 'nix::SysError'
nix-directory>   what():  error: reading symbolic link '/proc/self/exe': No such file or directory
error: builder for '/nix/store/5qnqr259jbqsq95lfwc7ln0nh5lb407i-nix-directory.drv' failed with exit code 255;

Issue seems to be on nix-store --init after nixpkgs update, see https://github.com/t184256/nix-on-droid/blob/master/pkgs/nix-directory.nix#L46

Gerschtli commented 1 year ago

Found a solution:

Gerschtli commented 1 year ago

BTW there are quite some old branches that are merged and/or maybe not needed anymore. Except for current open PR branches, your testing branch and the release-* branches (and maybe pre-module-system branch), are the other branches still required? Just for some house-keeping :)

  remotes/origin/FAILED-on-device-proot-building a8c3881 Attempt to fix proot static compilation
  remotes/origin/deploy-fix                      1194ecf deploy: allow specifying urls not ending with source.tar.gz
  remotes/origin/does-this-fix-make              d627071 pkgs/cross-compiling/proot: fix seccomp+setresxid
  remotes/origin/fix-flake-prompt                b623074 login-inner: fix default choice on bootstrap flakes prompt
  remotes/origin/fix-profile                     048b22f environment.path: fix installation with nix profile
  remotes/origin/master                          4e58ce7 fix(terminal.nix): quote font paths
  remotes/origin/pre-module-system               a505862 Add less to basic-environment, nix needs a $PAGER.
  remotes/origin/prerelease-20.09                fed9bbe pkgs/qemu-aarch64-static: update
  remotes/origin/prerelease-22.05                b286ac1 pkgs/nix-directory: update nix
  remotes/origin/prerelease-22.05-pt2            0ad6321 pkgs: use non-prebuilt SDK
  remotes/origin/prerelease-22.05-unmerged-work  d0b08d2 proot-termux: simplify module
  remotes/origin/prerelease-22.11                8816289 bootstrap: update nixpkgs version
  remotes/origin/release-19.09                   d551f63 Add a comment to clarify setting user.shell
  remotes/origin/release-20.03                   b651458 Fix Cachix in Travis with `trusted-users = travis`
  remotes/origin/release-20.09                   0dec5d4 modules/user: use runCommandLocal for idDerivation
  remotes/origin/release-21.05                   3e3a4e2 overlays/lib/nixpkgs.nix: use system
  remotes/origin/release-21.11                   e87f42e modules/upgrade: fix missing /dev/shm on upgrade from <21.11
  remotes/origin/release-22.05                   d49fd3a CHANGELOG: Release 22.05
  remotes/origin/testing                         62cf934 fixup ssh: don't write to stdout
  remotes/origin/update-sdk                      dda3bd3 WIP: compile proot dynamically with non-prebuilt SDK
  remotes/origin/wip-non-static-proot            07a89d7 WIP non-static proot
Gerschtli commented 1 year ago

I would also recommend to use more variables for the nixos version for the next update.

What do you mean by that? What kind of variables?

t184256 commented 1 year ago

BTW there are quite some old branches that are merged and/or maybe not needed anymore.

Didn't know I had so many failed attempts to update SDK and build proot differently =/ Cleaned up some of the branches.

Gerschtli commented 1 year ago

Rebased and added a commit for #230. Also dropped the workaround for default nix version < 2.4. If that is fine, you can merge and do the usual release steps :)