- replace path:../.. with a pinned github root input - avoid pure-mode failures in downstream plugin evals Tests: not run (config change only)
39 lines
1.2 KiB
Nix
39 lines
1.2 KiB
Nix
{
|
|
description = "openclaw plugin: oracle";
|
|
|
|
inputs = {
|
|
nixpkgs.url = "github:NixOS/nixpkgs?rev=16c7794d0a28b5a37904d55bcca36003b9109aaa&narHash=sha256-fFUnEYMla8b7UKjijLnMe%2BoVFOz6HjijGGNS1l7dYaQ%3D";
|
|
root.url = "github:openclaw/nix-steipete-tools?rev=dbf0a31a57407d9140e32357ea8d0215bd9feed9&narHash=sha256-QkPl/Rgk9DXgaVNhjvHHHjy5e81j+MzcVOouZRdUTLA=";
|
|
};
|
|
|
|
outputs = { self, nixpkgs, root }:
|
|
let
|
|
lib = nixpkgs.lib;
|
|
systems = builtins.attrNames root.packages;
|
|
pluginFor = system:
|
|
let
|
|
packagesForSystem = root.packages.${system} or {};
|
|
oracle = packagesForSystem.oracle or null;
|
|
in
|
|
if oracle == null then null else {
|
|
name = "oracle";
|
|
skills = [ ./skills/oracle ];
|
|
packages = [ oracle ];
|
|
needs = {
|
|
stateDirs = [];
|
|
requiredEnv = [];
|
|
};
|
|
};
|
|
in {
|
|
packages = lib.genAttrs systems (system:
|
|
let
|
|
oracle = (root.packages.${system} or {}).oracle or null;
|
|
in
|
|
if oracle == null then {}
|
|
else { oracle = oracle; }
|
|
);
|
|
|
|
openclawPlugin = pluginFor;
|
|
};
|
|
}
|