!UUYziobKGGxpovWyAN:nixos.org

Robotnix

228 Members
Build Android (AOSP) using Nix | https://github.com/nix-community/robotnix68 Servers

Load older messages


SenderMessageTime
1 Dec 2025
@roadroller01:matrix.org@roadroller01:matrix.org *

Doesn't robotnix support aarch64-linux?!

I have just ran

nix flake show --all-system
16:21:33
@roadroller01:matrix.org@roadroller01:matrix.orgscreenshot-2025-12-01_19:20:40.png
Download screenshot-2025-12-01_19:20:40.png
16:22:04
@magic_rb:matrix.redalder.orgmagic_rbI think i asked this question and the answer i think i got was "no because android ships rebuilt binaries but only for x86"16:39:56
@atemu12:matrix.orgAtemuThis fact may have changed but you'd need to research that16:51:48
@magic_rb:matrix.redalder.orgmagic_rb(I did remember right, yay!)16:58:37
@roadroller01:matrix.org@roadroller01:matrix.orgwhat about the first question haha 17:52:08
@roadroller01:matrix.org@roadroller01:matrix.orgWhat is exactly the purpose of using the pre-build binaries by google in android-nixpkgs? As they don't provide any for aarch64.20:54:28
2 Dec 2025
@roadroller01:matrix.org@roadroller01:matrix.orgI might be new here but it seems that most if not all pkgs in android-nixpkgs are now available under nixpkgs androidenv.* This might be new idk is there something am missing? I am now changing android-nixpkgs to androidenv.* as it support aarch64, Please notify me if there is something I am missing. Thanks!01:49:21
@roadroller01:matrix.org@roadroller01:matrix.org * I might be new here but it seems that most if not all pkgs in android-nixpkgs are now available under nixpkgs androidenv.* This might be new idk is there something am missing? I am now changing android-nixpkgs to androidenv.* (not sure if it support aarch64), Please notify me if there is something I am missing. Thanks! 01:56:49
@cyclopentane:aidoskyneen.eupentane ⭔ okay so I just took a look at it, and it seems like that's gonna be a bit more difficult. github:TrebleDroid/treble_manifest works by taking the LineageOS git-repo manifest as a base, and <remove-project ... />ing a bunch of the upstream LineageOS directories. Back when I wrote repo2nix I decided against supporting these git-repo directives because they'd have required me to wade through the messy Python source code of git-repo (and yes, it already was difficult figuring out the override behaviour for the default/project-specific remotes) 13:10:39
@cyclopentane:aidoskyneen.eupentane ⭔ i suppose it'd be manageable to approximate the upstream git-repo behaviour for <remove-project> directives just enough for that specific manifest to work, but imo that'd be misguided because then it'd probably start misbehaving in other cases using <remove-project> 13:12:13
@cyclopentane:aidoskyneen.eupentane ⭔ it's an inherent drawback of the "rewrite git-repo in rust" approach I took, in contrast to danielrf's original approach of patching git-repo :/ 13:12:45
3 Dec 2025
@roadroller01:matrix.org@roadroller01:matrix.org *

Following this tutorial:
https://github.com/TrebleDroid/treble_experimentations/wiki/How-to-build-a-GSI?

It seems that i just need to add https://github.com/TrebleDroid/treble_manifest/tree/android-15.0 to repo2nix.localManifests for lineage-22.1

06:06:43
@roadroller01:matrix.org@roadroller01:matrix.org *

Following this tutorial:
https://github.com/TrebleDroid/treble_experimentations/wiki/How-to-build-a-GSI%3F

It seems that i just need to add https://github.com/TrebleDroid/treble_manifest/tree/android-15.0 to repo2nix.localManifests for lineage-22.1

06:06:59
@roadroller01:matrix.org@roadroller01:matrix.org for the other cases just warn about that repo2nix couldn't handle this! 06:08:21
@roadroller01:matrix.org@roadroller01:matrix.org * for the other cases just warn that repo2nix couldn't handle this! 06:08:35
@roadroller01:matrix.org@roadroller01:matrix.org

Why exacly does the manifast download go? Should just the host system install go?!
here:

  <project path="prebuilts/go/darwin-x86" name="platform/prebuilts/go/darwin-x86" groups="notdefault,platform-darwin,darwin,pdk,tradefed" clone-depth="1" remote="aosp" />
  <project path="prebuilts/go/linux-x86" name="platform/prebuilts/go/linux-x86" groups="linux,pdk,tradefed" clone-depth="1" remote="aosp" />
06:10:01
@roadroller01:matrix.org@roadroller01:matrix.org *

Why exacly does the manifast download go? Shouldn't just the host system install go?!
here:

  <project path="prebuilts/go/darwin-x86" name="platform/prebuilts/go/darwin-x86" groups="notdefault,platform-darwin,darwin,pdk,tradefed" clone-depth="1" remote="aosp" />
  <project path="prebuilts/go/linux-x86" name="platform/prebuilts/go/linux-x86" groups="linux,pdk,tradefed" clone-depth="1" remote="aosp" />
06:10:42
@roadroller01:matrix.org@roadroller01:matrix.orgAs I got an error because it didn't ship an aarch64 go prebuilt binary!06:13:05
@roadroller01:matrix.org@roadroller01:matrix.orgOr I might just remove them manually haha06:16:38
@roadroller01:matrix.org@roadroller01:matrix.orgWhy does blueprint being used while it got archived four years ago? https://github.com/google/blueprint19:04:44
@roadroller01:matrix.org@roadroller01:matrix.org How exactly could I use/run modules/repo2nix.nix? (I am little bit nix noob)
I didn't see anywhere in the project for an usage!
20:13:20
4 Dec 2025
@i-am-logger:matrix.orgIdo Samuelson joined the room.01:44:44
@onur-ozkan:matrix.orgonur-ozkan joined the room.04:20:29
@waltmck:matrix.orgwaltmck

I think that I have enough ram. I get about a third of the way through the build before it fails with

FAILED: out/soong/.intermediates/packages/modules/Virtualization/build/microdroid/microdroid_kernel_signed/android_arm64_armv8-2a_cortex-a55/microdroid_kernel
cp packages/modules/Virtualization/guest/kernel/android15-6.6/arm64/kernel-6.6 out/soong/.intermediates/packages/modules/Virtualization/build/microdroid/microdroid_kernel_signed/android_arm64_armv8-2a_cortex-a55/microdroi>
Traceback (most recent call last):
  File "<frozen runpy>", line 198, in _run_module_as_main
  File "<frozen runpy>", line 88, in _run_code
  File "/build/out/host/linux-x86/bin/avbtool/__main__.py", line 12, in <module>
  File "<frozen runpy>", line 198, in _run_module_as_main
  File "<frozen runpy>", line 88, in _run_code
  File "avbtool.py", line 5037, in <module>
  File "avbtool.py", line 4824, in run
  File "avbtool.py", line 4874, in add_hash_footer
  File "avbtool.py", line 3476, in add_hash_footer
  File "avbtool.py", line 790, in __init__
  File "avbtool.py", line 807, in _read_header
PermissionError: [Errno 13] Permission denied: 'out/soong/.intermediates/packages/modules/Virtualization/build/microdroid/microdroid_kernel_signed/android_arm64_armv8-2a_cortex-a55/microdroid_kernel'
06:49:30
@waltmck:matrix.orgwaltmck

My config is

{
  device = "lynx";
  flavor = "lineageos";
  flavorVersion = "22.2";

  apps.fdroid.enable = true;
  microg.enable = true;
}
06:50:10
@atemu12:matrix.orgAtemuAh, hmm; that usually means this file was generated while keeping the nix store permissions of the source files06:53:19
@waltmck:matrix.orgwaltmckI just bought a used pixel 9 pro so I'm going to try building for caiman06:54:01
@atemu12:matrix.orgAtemuWe have patches that make the builsystem chmod such instances but it's whack-a-mole06:54:16
@atemu12:matrix.orgAtemuYou'd have to figure out which part of the build puts this file in this place and how06:55:00

Show newer messages


Back to Room ListRoom Version: 6