nix-community / nix-on-droid

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

Prerelease 23.11 #336

Closed t184256 closed 3 months ago

t184256 commented 4 months ago

I give up on doing it cleanly, let's just release already before it's May.

Gerschtli commented 4 months ago

fakedroid seems to be broken.. I will test the new bootstrap on my device, did you push that bootstrap.zip somewhere already?

t184256 commented 4 months ago

https://nix-on-droid.unboiled.info/bootstrap-prerelease-23.11

https://github.com/nix-community/nix-on-droid/actions/runs/8129783255/job/22217267977 suggests home-manager is broken =/

t184256 commented 4 months ago

6bccf0a passes on-device and fails on NixOS+fakedroid. so far no idea why shm would be broken in fakedroid, as the entire /dev/ is mounted over

Gerschtli commented 4 months ago

The issue with the missing profile.lock is caused by https://github.com/NixOS/nix/pull/5226. A workaround is

diff --git c/pkgs/bootstrap.nix i/pkgs/bootstrap.nix
index 7e76299..f7ea097 100644
--- c/pkgs/bootstrap.nix
+++ i/pkgs/bootstrap.nix
@@ -3,7 +3,8 @@
 { runCommand, nixDirectory, prootTermux, bash, pkgs, config, initialPackageInfo }:

 runCommand "bootstrap" { } ''
-  mkdir --parents $out/{.l2s,bin,dev/shm,etc,nix,root,tmp,usr/{bin,lib}}
+  mkdir --parents $out/{.l2s,bin,dev/shm,etc,root,tmp,usr/{bin,lib}}
+  mkdir --parents $out/nix/var/nix/{profiles,gcroots}/per-user/nix-on-droid

   cp --recursive ${nixDirectory}/store $out/nix/store
   cp --recursive ${nixDirectory}/var $out/nix/var
t184256 commented 4 months ago

shm issue seems to be an interplay with link2symlink, as the shm file gets linked around across different names. I guess I'm gonna drop link2symlink in fakedroid

t184256 commented 4 months ago

Incorporated both changes, let's see what the CI thinks...

t184256 commented 4 months ago

whoa, CI sure is slow today

t184256 commented 3 months ago

OK, please review.

If the CI keeps being that unreliable, I think I'll configure a $1 VPS as a self-hosted runner or something. =/

t184256 commented 3 months ago

Thank you for the review and testing!