!UUYziobKGGxpovWyAN:nixos.org

Robotnix

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

Load older messages


SenderMessageTime
31 Dec 2025
@roadroller01:matrix.org@roadroller01:matrix.orgHow should I patch/(add a source) to repo.lock within default.nix? it seems that source.dirs only patches and it no clear to me how to add19:01:01
@atemu12:matrix.orgAtemuJust declare a new entry in source.dirs19:44:58
@atemu12:matrix.orgAtemuIt's an attrsOf submodule19:45:21
@roadroller01:matrix.org@roadroller01:matrix.orghaha i don't know what even is a attrsOf submodule20:00:47
@atemu12:matrix.orgAtemuAh that's the data type of the option. It works just like in NixOS if you've used that.20:11:46
@atemu12:matrix.orgAtemuSee https://docs.robotnix.org/options.html#sourcedirs for the submodule options20:12:11
@roadroller01:matrix.org@roadroller01:matrix.orgI did but didn't dive into a lot.23:32:21
@roadroller01:matrix.org@roadroller01:matrix.org So I should use source.dirs.<name>.src cool 23:33:01
1 Jan 2026
@matthewcroughan:defenestrate.itmatthewcroughan changed their display name from matthewcroughan @ 39c3 (DECT 94667 or 97340 or 67192) to matthewcroughan.20:02:04
6 Jan 2026
@magic_rb:matrix.redalder.orgmagic_rbHas anyone tried to build a graphene bolted onto lineageos? Curious if i can build graphene for my oneplus12:03:33
@magic_rb:matrix.redalder.orgmagic_rbCheaper than buying a pixel12:03:39
@magic_rb:matrix.redalder.orgmagic_rbtechnically given the right vendor it could work at least somewhat12:17:37
@magic_rb:matrix.redalder.orgmagic_rbIf i copy parts of the repo lock json file from lineageos, to graphene, im assuming the vendor folders will appear in the build directory. However, whether graphene will pick them up correctly is unknown12:31:13
@cyclopentane:aidoskyneen.eupentanehmm, sounds like your best bet is taking the LOS device trees and grafting them onto the GrapheneOS source tree12:45:40
@cyclopentane:aidoskyneen.eupentanedon't know how happy the GrapheneOS specific modifications to the non-device specific AOSP source code are gonna be about the lack of hardware features tho12:46:41
@magic_rb:matrix.redalder.orgmagic_rb i tried to include the dirs a found in repo.lock which contain sm8250 or oplus or kebab in source.dirs 12:48:58
@magic_rb:matrix.redalder.orgmagic_rb

but i am getting

evaluation warning: kebab is not a supported device for GrapheneOS
these 4 derivations will be built:
  /nix/store/jf2dmxj1z536ij67g8x6vx36zl4a81zg-unpack.sh.drv
  /nix/store/69yjhsmin24ii6zhm0wpi5a3f6zj5v8k-robotnix-kebab-2025102800.drv
  /nix/store/dff0sgb54idf8nbybb3xysjhzkxjf12n-ota-tools.drv
  /nix/store/m9h4vafkp3pva1l2w3pdn6hhqqv5hpjh-kebab-img-2025102800.zip.drv
building '/nix/store/jf2dmxj1z536ij67g8x6vx36zl4a81zg-unpack.sh.drv'...
building '/nix/store/69yjhsmin24ii6zhm0wpi5a3f6zj5v8k-robotnix-kebab-2025102800.drv'...
Running phase: unpackPhase
Running phase: patchPhase
Running phase: updateAutotoolsGnuConfigScriptsPhase
Running phase: buildPhase
export BUILD_DATETIME=1761690609 BUILD_NUMBER=2025102800
In file included from build/make/core/config.mk:419:
In file included from build/make/core/envsetup.mk:351:
build/make/core/product_config.mk:226: error: Cannot locate config makefile for product "kebab".
12:45:30 dumpvars failed with: exit status 1
note: keeping build directory '/nix/var/nix/builds/nix-3798687-70607818/build'
12:49:17
@magic_rb:matrix.redalder.orgmagic_rbbut the makefile doesnt exist in the kept directory12:49:27
@cyclopentane:aidoskyneen.eupentane the LOS device-specific deps are tagged via the category attribute, you can use that one to filter them 12:49:30
@magic_rb:matrix.redalder.orgmagic_rbah12:49:40
@cyclopentane:aidoskyneen.eupentane in particular, you wanna filter for all source dirs in the LOS repo.lock whose categories field contains { "DeviceSpecific": "<your device codename>" } 12:50:25
@cyclopentane:aidoskyneen.eupentane Oh, and in LOS, the product names are all prefixed with aosp_ 12:52:01
@magic_rb:matrix.redalder.orgmagic_rbgot me the same set as my filtering on the path approach :)12:52:05
@magic_rb:matrix.redalder.orgmagic_rbbut categories is less of a hack, thanks12:52:17
@cyclopentane:aidoskyneen.eupentane so you wanna set config.productNamePrefix = "aosp_"; such that lunch looks for the correct product makefile during the build 12:52:33
@magic_rb:matrix.redalder.orgmagic_rb
build/make/core/product_config.mk:226: error: Cannot locate config makefile for product "aosp_kebab".
12:53:40
@cyclopentane:aidoskyneen.eupentane * so you wanna set productNamePrefix = "aosp_"; such that lunch looks for the correct product makefile during the build 12:53:40
@magic_rb:matrix.redalder.orgmagic_rbhmm12:53:41
@cyclopentane:aidoskyneen.eupentaneUhh12:54:05
@cyclopentane:aidoskyneen.eupentaneMy bad12:54:12

Show newer messages


Back to Room ListRoom Version: 6