nix-openclaw-tools/tools/summarize/flake.nix
joshp123 08955054f4 use relative root for tool plugin flakes
Point per-tool plugin flakes at the repository root with a relative input so bundled plugin evaluation uses the same source tree instead of stale historical nix-openclaw-tools commits.

Tests: go test ./...; nix flake show --all-systems; nix build 'git+file:///Users/josh/code/nix-openclaw-tools?dir=tools/goplaces#packages.aarch64-darwin.goplaces' --no-link
2026-05-05 12:13:40 +02:00

39 lines
1.1 KiB
Nix

{
description = "openclaw plugin: summarize";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs?rev=16c7794d0a28b5a37904d55bcca36003b9109aaa&narHash=sha256-fFUnEYMla8b7UKjijLnMe%2BoVFOz6HjijGGNS1l7dYaQ%3D";
root.url = "../..";
};
outputs = { self, nixpkgs, root }:
let
lib = nixpkgs.lib;
systems = builtins.attrNames root.packages;
pluginFor = system:
let
packagesForSystem = root.packages.${system} or {};
summarize = packagesForSystem.summarize or null;
in
if summarize == null then null else {
name = "summarize";
skills = [ ./skills/summarize ];
packages = [ summarize ];
needs = {
stateDirs = [];
requiredEnv = [];
};
};
in {
packages = lib.genAttrs systems (system:
let
summarize = (root.packages.${system} or {}).summarize or null;
in
if summarize == null then {}
else { summarize = summarize; }
);
openclawPlugin = pluginFor;
};
}