1
0
mirror of https://github.com/kmein/niveum synced 2026-03-16 10:11:08 +01:00

fix makanek and ful build

This commit is contained in:
2025-12-25 14:44:56 +01:00
parent dd50715f43
commit 37ef9a1b05
4 changed files with 39 additions and 32 deletions

View File

@@ -9,7 +9,7 @@
config = args.config or {};
lib =
lib.recursiveUpdate args.lib
args.lib //
(let
attrPaths = let
recurse = path: value:
@@ -18,11 +18,6 @@
else [(lib.nameValuePair path value)];
in
attrs: lib.flatten (recurse [] attrs);
in {
inherit attrPaths;
attrPathsSep = sep: attrs: lib.listToAttrs (map (x: x // {name = lib.concatStringsSep sep x.name;}) (attrPaths attrs));
toWeechatValue = x:
{
bool = builtins.toJSON x;
@@ -31,6 +26,10 @@
int = toString x;
}
.${builtins.typeOf x};
in {
inherit attrPaths toWeechatValue;
attrPathsSep = sep: attrs: lib.listToAttrs (map (x: x // {name = lib.concatStringsSep sep x.name;}) (attrPaths attrs));
setCommand = name: value: "/set ${name} \"${toWeechatValue value}\"";