nix-steipete-tools/tools/discrawl/flake.nix
Dave Dennis 26a27195ca
feat: add crawling tool plugins
Adds discrawl and wacrawl packages, plugin flakes, skills, updater wiring, and README entries.
2026-04-26 03:16:51 +01:00

39 lines
1.1 KiB
Nix

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