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:
@@ -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}\"";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user