6eb193fbfa70 | atagen | 2026-09-27 03:59 UTC | 1 | { |
6eb193fbfa70 | atagen | 2026-09-27 03:59 UTC | 2 | lib, |
6eb193fbfa70 | atagen | 2026-09-27 03:59 UTC | 3 | runCommand, |
6eb193fbfa70 | atagen | 2026-09-27 03:59 UTC | 4 | writeText, |
6eb193fbfa70 | atagen | 2026-09-27 03:59 UTC | 5 | roundabout, |
6eb193fbfa70 | atagen | 2026-09-27 03:59 UTC | 6 | }: |
6eb193fbfa70 | atagen | 2026-09-27 03:59 UTC | 7 | |
6eb193fbfa70 | atagen | 2026-09-27 03:59 UTC | 8 | let |
6eb193fbfa70 | atagen | 2026-09-27 03:59 UTC | 9 | hooks = writeText "hooks.json" ( |
6eb193fbfa70 | atagen | 2026-09-27 03:59 UTC | 10 | builtins.toJSON { |
052a1a49371c | atagen | 2026-09-27 03:59 UTC | 11 | hooks = import ./hooks.nix { inherit lib roundabout; }; |
6eb193fbfa70 | atagen | 2026-09-27 03:59 UTC | 12 | } |
6eb193fbfa70 | atagen | 2026-09-27 03:59 UTC | 13 | ); |
6eb193fbfa70 | atagen | 2026-09-27 03:59 UTC | 14 | plugin = writeText "plugin.json" ( |
6eb193fbfa70 | atagen | 2026-09-27 03:59 UTC | 15 | builtins.toJSON { |
6eb193fbfa70 | atagen | 2026-09-27 03:59 UTC | 16 | name = "roundabout"; |
6eb193fbfa70 | atagen | 2026-09-27 03:59 UTC | 17 | description = "builds wait their turn"; |
6eb193fbfa70 | atagen | 2026-09-27 03:59 UTC | 18 | version = roundabout.version; |
6eb193fbfa70 | atagen | 2026-09-27 03:59 UTC | 19 | author.name = "atagen"; |
6eb193fbfa70 | atagen | 2026-09-27 03:59 UTC | 20 | } |
6eb193fbfa70 | atagen | 2026-09-27 03:59 UTC | 21 | ); |
6eb193fbfa70 | atagen | 2026-09-27 03:59 UTC | 22 | marketplace = writeText "marketplace.json" ( |
6eb193fbfa70 | atagen | 2026-09-27 03:59 UTC | 23 | builtins.toJSON { |
6eb193fbfa70 | atagen | 2026-09-27 03:59 UTC | 24 | name = "roundabout"; |
6eb193fbfa70 | atagen | 2026-09-27 03:59 UTC | 25 | owner.name = "atagen"; |
6eb193fbfa70 | atagen | 2026-09-27 03:59 UTC | 26 | description = "one build at a time, please"; |
6eb193fbfa70 | atagen | 2026-09-27 03:59 UTC | 27 | plugins = [ |
6eb193fbfa70 | atagen | 2026-09-27 03:59 UTC | 28 | { |
6eb193fbfa70 | atagen | 2026-09-27 03:59 UTC | 29 | name = "roundabout"; |
6eb193fbfa70 | atagen | 2026-09-27 03:59 UTC | 30 | source = "./plugins/roundabout"; |
6eb193fbfa70 | atagen | 2026-09-27 03:59 UTC | 31 | } |
6eb193fbfa70 | atagen | 2026-09-27 03:59 UTC | 32 | ]; |
6eb193fbfa70 | atagen | 2026-09-27 03:59 UTC | 33 | } |
6eb193fbfa70 | atagen | 2026-09-27 03:59 UTC | 34 | ); |
6eb193fbfa70 | atagen | 2026-09-27 03:59 UTC | 35 | in |
6eb193fbfa70 | atagen | 2026-09-27 03:59 UTC | 36 | # a marketplace wrapping one plugin, since claude code won't install a bare |
6eb193fbfa70 | atagen | 2026-09-27 03:59 UTC | 37 | # plugin dir. `claude plugin marketplace add <this>` then install roundabout@roundabout |
6eb193fbfa70 | atagen | 2026-09-27 03:59 UTC | 38 | runCommand "roundabout-plugin-${roundabout.version}" { } '' |
6eb193fbfa70 | atagen | 2026-09-27 03:59 UTC | 39 | p=$out/plugins/roundabout |
6eb193fbfa70 | atagen | 2026-09-27 03:59 UTC | 40 | mkdir -p $out/.claude-plugin $p/.claude-plugin $p/hooks $p/skills $p/bin |
6eb193fbfa70 | atagen | 2026-09-27 03:59 UTC | 41 | cp ${marketplace} $out/.claude-plugin/marketplace.json |
6eb193fbfa70 | atagen | 2026-09-27 03:59 UTC | 42 | cp ${plugin} $p/.claude-plugin/plugin.json |
6eb193fbfa70 | atagen | 2026-09-27 03:59 UTC | 43 | cp ${hooks} $p/hooks/hooks.json |
6eb193fbfa70 | atagen | 2026-09-27 03:59 UTC | 44 | cp -r ${../plugin/skills}/. $p/skills/ |
fdad58f8133a | atagen | 2026-10-25 23:14 UTC | 45 | ln -s ${lib.getExe roundabout} $p/bin/roundabout |
6eb193fbfa70 | atagen | 2026-09-27 03:59 UTC | 46 | '' |