!UUYziobKGGxpovWyAN:nixos.org

Robotnix

257 Members
Build Android (AOSP) using Nix | https://github.com/danielfullmer/robotnix83 Servers

Load older messages


SenderMessageTime
11 Apr 2026
@atemu12:matrix.orgatemu12IIRC it was slow enough where even that was not a given10:58:19
@atemu12:matrix.orgatemu12I could see whether I still have the snippet to generate the stub drvs10:58:47
@magic_rb:matrix.redalder.orgmagic_rbRight exactly what i meant, as jaen said what im describing are probably bazel persistent workers. If we could skip the store path setup because we do it once for all of the robotnix derivations, that would make things faster10:58:49
@atemu12:matrix.orgatemu12I also think that module-level granularity is honestly good enough10:59:46
@jaen:matrix.orgjaenWould appreciate, I do have something already, but comparing notes would be helpful, maybe I missed something obvious when I was paying it only part of my mind10:59:54
@atemu12:matrix.orgatemu12Most modules are stuff like basic OSS libs that do not change at all11:00:27
@jaen:matrix.orgjaen For sure, granularity can just be one of the tuning knobs to use to find what is the most efficient 11:01:45
@atemu12:matrix.orgatemu12I don't know how many inter-dependencies there are between android-specific components. Somethin, in me makes me think it might not even be that much.11:02:13
@magic_rb:matrix.redalder.orgmagic_rbI do want to point out, how robotnix is the most accessible way to build android tbh. Like, building it manually is something ive never managed, not that i tried that much11:04:39
@atemu12:matrix.orgatemu12
{
  total ? 200000,
  random ? "foo",
  sleep ? 0,
  pkgs ? import <nixpkgs> { },
  lib ? pkgs.lib,
}:
let
  drvs = builtins.genList (
    n: pkgs.runCommand "${random}-${toString n}" { } "sleep ${toString sleep} ; echo ${toString n} > $out"
  ) total;
  list = lib.concatLines drvs;
in

pkgs.writeText "${toString total}" list
11:07:18
@atemu12:matrix.orgatemu12
{
  total ? 200000,
  random ? "foo",
  sleep ? 0,
  pkgs ? import <nixpkgs> { },
  lib ? pkgs.lib,
}:
let
  drvs = builtins.genList (
    n: pkgs.runCommand "${random}-${toString n}" { } "sleep ${toString sleep} ; echo ${toString n} > $out"
  ) total;
  list = lib.concatLines drvs;
in

pkgs.writeText "${toString total}" list
11:07:25
@atemu12:matrix.orgatemu12Currently running with 10000 and it's still going..11:07:50
@atemu12:matrix.orgatemu12 Yeah, so running sleep 10000 times took 8min and I doubt that scales <linearly. At that point, it'd be faster to just build; especially given that real compiler invocations take quite a bit longer than sleep 0 11:58:30
24 May 2021
@grahamc:nixos.org@grahamc:nixos.org set the history visibility to "world_readable".16:44:23
@grahamc:nixos.org@grahamc:nixos.org changed the room name to "" from "".16:44:23
@server_stats:nordgedanken.devServer Stats Discoverer (traveler bot) joined the room.16:44:33
@grahamc:nixos.org@grahamc:nixos.org invited @danielrf:matrix.orgdanielrf.16:44:48
@grahamc:nixos.org@grahamc:nixos.orgchanged room power levels.16:44:52
@hexa:lossy.networkhexa joined the room.16:45:03
@andreas.schraegle:helsinki-systems.deajs124 joined the room.16:51:31
@andi:kack.itandi- joined the room.16:55:26
@voyager:t2bot.ioMatrix Traveler (bot) joined the room.16:58:08
@hmenke:matrix.orghmenke joined the room.17:08:01
@philipp:xndr.dephilipp joined the room.17:37:33
@danielrf:matrix.orgdanielrf joined the room.17:48:31
@0x4a6f:matrix.org[0x4A6F] joined the room.18:46:31
@samueldr:matrix.orgsamueldr joined the room.18:58:30
@samueldr:matrix.orgsamueldr left the room.19:03:27
@samueldr:matrix.orgsamueldr joined the room.19:03:48
@danielrf:matrix.orgdanielrf set the room topic to "Build Android (AOSP) using Nix || https://github.com/danielfullmer/robotnix".19:41:00

Show newer messages


Back to Room ListRoom Version: 6