!UUYziobKGGxpovWyAN:nixos.org

Robotnix

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

Load older messages


SenderMessageTime
4 Jun 2025
@matthewcroughan:defenestrate.itmatthewcroughanAh interesting, using your repo I get this14:48:40
@matthewcroughan:defenestrate.itmatthewcroughan
evaluation warning: hlte is not an officially-supported device for LineageOS
error:
       … while calling the 'derivationStrict' builtin
         at <nix/derivation-internal.nix>:37:12:
           36|
           37|   strict = derivationStrict drvAttrs;
             |            ^
           38|

       … while evaluating the derivation attribute 'name'
         at /nix/store/n67nldl8x3f44w9mvk5zvij0q1rwnsmq-source/pkgs/stdenv/generic/make-derivation.nix:336:7:
          335|     // (optionalAttrs (attrs ? name || (attrs ? pname && attrs ? version)) {
          336|       name =
             |       ^
          337|         let

       … while evaluating the option `buildNumber':

       … while evaluating the option `buildDateTime':

       … while evaluating the option `source.dirs':

       … while evaluating definitions from `/nix/store/xifnlh6fjhk1axipz9c943smq76bcmiz-source/modules/source.nix':

       … while evaluating the option `source.manifests.lineage.branch':

       … while evaluating definitions from `/nix/store/xifnlh6fjhk1axipz9c943smq76bcmiz-source/flavors/lineageos':

       (stack trace truncated; use '--show-trace' to show the full, detailed trace)

       error: attribute 'hlte' missing
       at /nix/store/xifnlh6fjhk1axipz9c943smq76bcmiz-source/flavors/lineageos/default.nix:26:19:
           25|   LineageOSRelease = androidVersionToLineageBranch.${builtins.toString config.androidVersion};
           26|   defaultBranch = deviceMetadata.${config.device}.branch;
             |                   ^
           27|
14:48:54
@matthewcroughan:defenestrate.itmatthewcroughanSo in this setup you no longer support adding your own unsupported devices?14:49:20
@cyclopentane:aidoskyneen.eupentane ⭔Currently I'm just pulling the device list from https://github.com/LineageOS/hudson/blob/main/lineage-build-targets14:49:52
@cyclopentane:aidoskyneen.eupentane ⭔Providing a mechanism for building officially unsupported devices is on my todo list though :)14:50:12
@cyclopentane:aidoskyneen.eupentane ⭔ The official LOS build scripts are pretty dumb in that regard - when you breakfast some device, it literally just searches the https://github.com/LineageOS/android_device_*_* namespace for some repo that ends with the requested device name 14:51:43
@cyclopentane:aidoskyneen.eupentane ⭔ so ideally I'd just pull the default branch from github:LineageOS/hudson and take the remaining info directly from the device repos 14:52:10
@matthewcroughan:defenestrate.itmatthewcroughan But your work is unlikely to solve my issue of the build scripts thinking that the Robotnixprebuiltwebview package is missing, right? 14:52:50
@cyclopentane:aidoskyneen.eupentane ⭔Yep14:53:01
@matthewcroughan:defenestrate.itmatthewcroughanHow is this string even constructed? I couldn't find it anywhere in Robontix14:53:01
@matthewcroughan:defenestrate.itmatthewcroughan* How is this string even constructed? I couldn't find it anywhere in Robotnix14:53:05
@cyclopentane:aidoskyneen.eupentane ⭔No idea tbh, haven't interacted with that part of LOS yet14:53:40
@cyclopentane:aidoskyneen.eupentane ⭔ have you already tried building a debug env and taking a look at device/samsung/hlte/lineage_hlte.mk to see whether it actually includes the string Robotnixprebuiltwebview? 14:54:15
@matthewcroughan:defenestrate.itmatthewcroughanDebug env? 14:54:34
@matthewcroughan:defenestrate.itmatthewcroughan I can do a --keep-failed 14:55:16
@cyclopentane:aidoskyneen.eupentane ⭔That won't work because it uses bind mounts14:55:31
@matthewcroughan:defenestrate.itmatthewcroughanI'll add github.com/NixOS/nixpkgs/pull/334924 then14:55:41
@matthewcroughan:defenestrate.itmatthewcroughanThen you can get in :P14:56:15
@cyclopentane:aidoskyneen.eupentane ⭔Shouldn't be necessary, Robotnix has its own debug env functionality14:56:29
@matthewcroughan:defenestrate.itmatthewcroughanI did a google search for robotnix docs and gave up when I couldn't find it14:56:43
@matthewcroughan:defenestrate.itmatthewcroughan I also ctrl + f''d for debug on the readme 14:57:02
@matthewcroughan:defenestrate.itmatthewcroughan I searched the repo for debug and found a lot of things that aren't what you're referencing 14:57:24
@cyclopentane:aidoskyneen.eupentane ⭔ If you've defined a robotnix system with foo = lib.robotnixSystem { ... }, you can access the debug env script with foo.config.build.debugEnterEnv 14:57:41
@cyclopentane:aidoskyneen.eupentane ⭔ Just remember to cd into an empty directory before, it'll create lots of bind mounts ;) 14:58:04
@cyclopentane:aidoskyneen.eupentane ⭔But yeah I agree that robotnix needs better docs14:58:22
@matthewcroughan:defenestrate.itmatthewcroughanI'll just add a tmate breakpoint and ssh into the failed build14:58:37
@matthewcroughan:defenestrate.itmatthewcroughanseems less janky than making a bunch of bind mounts?14:58:44
@cyclopentane:aidoskyneen.eupentane ⭔ in my experience, debugEnterEnv works pretty well 14:58:57
@cyclopentane:aidoskyneen.eupentane ⭔
In reply to @matthewcroughan:defenestrate.it
I'll just add a tmate breakpoint and ssh into the failed build
but yeah I suppose that this should work too
14:59:08
@matthewcroughan:defenestrate.itmatthewcroughan
user: matthew 🌐 swordfish in /tmp/nix-build-robotnix-lineage_hlte-2025040309.drv-0/build🔒 
❯ fd lineage_hlte.mk
out/soong/Android-lineage_hlte.mk
out/soong/installs-lineage_hlte.mk
out/soong/late-lineage_hlte.mk
out/soong/make_vars-lineage_hlte.mk
14:59:48

Show newer messages


Back to Room ListRoom Version: 6