Robotnix | 264 Members | |
| Build Android (AOSP) using Nix | https://github.com/danielfullmer/robotnix | 83 Servers |
| Sender | Message | Time |
|---|---|---|
| 5 Sep 2021 | ||
| danielrf IT BOOTS!!!! | 11:13:16 | |
Download Screenshot_20210905-141612167.jpg | 11:17:10 | |
| Redacted or Malformed Event | 11:18:26 | |
| nitpick, https://docs.robotnix.org/ still mentions freenode | 17:07:56 | |
| danielrf: btw, isnt --arg applied everywhere/every function invocation? im always a little weirded out when someone recommends using it | 17:44:07 | |
| meanwhile, turns out the person offering me the beefy machine for builds cant offer it anymore, so i again need to find someone that can give me build time | 18:06:32 | |
| * nitpick, https://docs.robotnix.org/ and https://docs.robotnix.org/modules/flavors.html still mentions freenode | 18:14:16 | |
--arg passes the --arg value only to functions it directly encounters AFAIUI; e.g. if the expression you evaluate is a list of function, it will pass the arguments to the functions from that list, but not further.;This mirrors the nix-build behaviour where building a list of derivations build all of them; if you have a list of expressions needing to be parameterized to produce derivations to build, I guess it makes sense to provide args to all of them | 18:34:09 | |
(I'm going from the description in the man page, haven't actually seen --arg being given to anything else than a top-level function, and I've been using --arg extensively in Mobile NixOS) | 18:35:53 | |
In reply to @jcie74:matrix.orgThanks, just pushed a fix that should propagate to docs.robotnix.org soon | 18:36:38 | |
My understanding is about --arg matches what samueldr said. The original idea was to have configuration as a top-level argument, so that it matched what NixOS does in nixpkgs/nixos/default.nix. | 18:37:50 | |
The newer nix command line interface when using flakes does not support --arg on the commandline, you currently have to make a flake.nix and call robotnix.lib.robotnixSystem | 18:39:46 | |
But if the configuration is short enough (and I'm just testing something out), I like the convenience of specifying the options directly on the command line, as opposed to making a .nix file every time. | 18:42:02 | |
| (off-topic) huh, I didn't know that about flakes... a step backward in UX imho | 18:42:42 | |
| kranzes: Hey, that's great! If you're interested in figuring out exactly what is breaking it in the lineageos configuration, you can start commenting out the sections that don't seem needed and testing. Bth, my best guess now actually is the webview configuration overrides we do in the lineageos flavor | 18:46:50 | |
| * kranzes: Hey, that's great! If you're interested in figuring out exactly what is breaking it in the lineageos configuration, you can start commenting out the sections that don't seem needed and testing. Tbh, my best guess now actually is the webview configuration overrides we do in the lineageos flavor | 18:46:57 | |
| samueldr: I have mixed feelings about it as well. Things that should be easy take a bit of boilerplate to make work. Reproducibility/purity benefits outweigh the costs for me though. | 18:48:16 | |
| That would take me ages | 18:48:18 | |
| every build is 3 hours | 18:48:26 | |
| and i don't even know where to start | 18:48:42 | |
| up to you if you want to continue tracking it down. The long turnaround time is an unfortunate thing we deal with on android. | 18:50:21 | |
| But I'd probably start with commenting out the webview stuff like so: | 18:50:38 | |
| 18:50:48 | |
| * up to you if you want to continue tracking it down. The long build/test cycle time is an unfortunate thing we deal with on android. | 18:51:33 | |
| samueldr: danielrf https://gist.github.com/cleverca22/240c21dab528666c85a95c4edfdeae58 | 19:13:40 | |
| re: --arg | 19:13:43 | |
| i couldnt remember where to find the relevant part of the source though | 19:13:53 | |
| ah, I think that's because they float up to the top-level | 19:15:00 | |
| or something like that | 19:15:26 | |
| though I guess it's less of an issue than could be thought, as I've literally never seen that being an issue | 19:15:45 | |