| 31 Dec 2025 |
@roadroller01:matrix.org | How 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 add | 19:01:01 |
Atemu | Just declare a new entry in source.dirs | 19:44:58 |
Atemu | It's an attrsOf submodule | 19:45:21 |
@roadroller01:matrix.org | haha i don't know what even is a attrsOf submodule | 20:00:47 |
Atemu | Ah that's the data type of the option. It works just like in NixOS if you've used that. | 20:11:46 |
Atemu | See https://docs.robotnix.org/options.html#sourcedirs for the submodule options | 20:12:11 |
@roadroller01:matrix.org | I did but didn't dive into a lot. | 23:32:21 |
@roadroller01:matrix.org | So I should use source.dirs.<name>.src cool | 23:33:01 |
| 1 Jan 2026 |
| matthewcroughan changed their display name from matthewcroughan @ 39c3 (DECT 94667 or 97340 or 67192) to matthewcroughan. | 20:02:04 |
| 6 Jan 2026 |
magic_rb | Has anyone tried to build a graphene bolted onto lineageos? Curious if i can build graphene for my oneplus | 12:03:33 |
magic_rb | Cheaper than buying a pixel | 12:03:39 |
magic_rb | technically given the right vendor it could work at least somewhat | 12:17:37 |
magic_rb | If 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 unknown | 12:31:13 |
pentane | hmm, sounds like your best bet is taking the LOS device trees and grafting them onto the GrapheneOS source tree | 12:45:40 |
pentane | don'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 tho | 12:46:41 |
magic_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 | 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 | but the makefile doesnt exist in the kept directory | 12:49:27 |
pentane | the LOS device-specific deps are tagged via the category attribute, you can use that one to filter them | 12:49:30 |
magic_rb | ah | 12:49:40 |
pentane | 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 |
pentane | Oh, and in LOS, the product names are all prefixed with aosp_ | 12:52:01 |
magic_rb | got me the same set as my filtering on the path approach :) | 12:52:05 |
magic_rb | but categories is less of a hack, thanks | 12:52:17 |
pentane | so you wanna set config.productNamePrefix = "aosp_"; such that lunch looks for the correct product makefile during the build | 12:52:33 |
magic_rb | build/make/core/product_config.mk:226: error: Cannot locate config makefile for product "aosp_kebab".
| 12:53:40 |
pentane | * so you wanna set productNamePrefix = "aosp_"; such that lunch looks for the correct product makefile during the build | 12:53:40 |
magic_rb | hmm | 12:53:41 |
pentane | Uhh | 12:54:05 |
pentane | My bad | 12:54:12 |