chore: minor improvements & add blocks

This commit is contained in:
technofab 2025-08-05 16:15:24 +02:00
parent 3aeff518bb
commit 2774f3ea91
No known key found for this signature in database
4 changed files with 14 additions and 9 deletions

View file

@ -11,11 +11,8 @@
rensa.buildWith {
inherit inputs;
cellsFrom = ./cells;
cellBlocks = [
{
name = "test";
type = "test";
}
cellBlocks = with rensa.blocks; [
(simple "test")
];
} {};
}

View file

@ -1,2 +1,11 @@
{
simple = name: {
inherit name;
type = name;
};
dynamic = name: {
inherit name;
type = name;
# TODO: dynamic actions
};
}

View file

@ -47,7 +47,6 @@
}
else throw "Neither ${blockP.file} nor ${blockP.dir} exist, this shouldn't happen!";
targetTracer = name: l.traceVerbose "[ren] loading, system=${system} path=${importPaths.importPath} name=${name}";
imported = import' importPaths.importPath;
isAttrs = builtins.isAttrs imported;
@ -70,7 +69,7 @@
)
else {};
in {
init = targetTracer name {
init = l.traceVerbose "[ren] loading, system=${system} path=${importPaths.importPath} name=${name}" {
inherit name;
actions =
l.mapAttrsToList (name: a: {

View file

@ -3,9 +3,9 @@
utils = import ./utils {inherit l;};
core = import ./core {inherit l utils;};
compat = import ./compat {inherit l;};
blocks = import ./blocks;
in {
inherit (compat) filter select get;
inherit (core) build buildWith;
# TODO:
# blocks = import ./blocks;
inherit blocks;
}