nix-community / nix-on-droid

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

Bump bootstrap nix to 2.11.0 #200

Closed zhaofengli closed 2 years ago

zhaofengli commented 2 years ago

This PR bumps the bootstrap Nix version to 2.11.0. This brings in a newer version of glibc which fixes issues with devices with BTI functionality. Since newer Nix bootstrap tarballs no longer include coreutils, let's also remove our dependency on it.

Tested on the Exynos variant of Galaxy S22 (SM-S901B). Fixes #199.

t184256 commented 2 years ago

And the zipball goes down from 46M to 32M, impressive.

zhaofengli commented 2 years ago

Not sure how avoiding coreutils relates to this issue, but I don't see downsides of doing that, so why not.

The new bootstrap tarballs don't contain coreutils, so PKG_COREUTILS will be empty causing ${coreutils}/bin/mkdir et al to just expand to /bin/mkdir which doesn't work.

t184256 commented 2 years ago

Understood, thank you.