Add project skills to dev shell

This commit is contained in:
2026-07-30 00:28:43 -04:00
parent 6bb3242e7f
commit 920517e623
5 changed files with 65 additions and 9 deletions

View File

@@ -4,6 +4,11 @@
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
inputs.flake-utils.url = "github:numtide/flake-utils";
inputs.gitea-axi = {
url = "git+https://git.alexion.dev/alexion/gitea-axi";
inputs.nixpkgs.follows = "nixpkgs";
};
# Present only so `nix flake check` can evaluate `homeModules.default` against
# real home-manager (the home-manager-module check). Its nixpkgs follows this
# flake's, so the module is checked against the same nixpkgs-and-home-manager
@@ -14,7 +19,7 @@
inputs.home-manager.inputs.nixpkgs.follows = "nixpkgs";
outputs =
{ self, nixpkgs, flake-utils, home-manager }:
{ self, nixpkgs, flake-utils, home-manager, gitea-axi }:
let
mkSkill = import ./lib/mk-skill.nix;
mkSkillsShellHook = import ./lib/mk-skills-shell-hook.nix;
@@ -94,12 +99,18 @@
};
# A working shell for developing skills in this repo.
# python3 runs the benchmark skill's deterministic core.
# The benchmark-skill is placed into ./.agents/skills/ on entry, with
# Python runs the benchmark core, while gitea-axi backs its project skill.
# Both project skills are placed into ./.agents/skills/ on entry, with
# ./.claude/skills as a compatibility symlink.
devShells.default = pkgs.mkShell {
packages = [ pkgs.python3 ];
shellHook = mkSkillsShellHook [ (skillPackages pkgs).benchmark-skill ];
packages = [
pkgs.python3
gitea-axi.packages.${system}.gitea-axi
];
shellHook = mkSkillsShellHook [
gitea-axi.packages.${system}.gitea-axi-skill
(skillPackages pkgs).benchmark-skill
];
};
}
);