!UUYziobKGGxpovWyAN:nixos.org

Robotnix

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

Load older messages


SenderMessageTime
11 Apr 2026
@atemu12:matrix.orgAtemuIIRC it was slow enough where even that was not a given10:58:19
@atemu12:matrix.orgAtemuI 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.orgAtemuI 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.orgAtemuMost 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.orgAtemuI 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.orgAtemu
{
  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.orgAtemu
{
  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.orgAtemuCurrently running with 10000 and it's still going..11:07:50
@atemu12:matrix.orgAtemu 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
@ortolanbunting3002:tchncs.deortolanbunting3002 joined the room.12:41:51

There are no newer messages yet.


Back to Room ListRoom Version: 6