Skip to content

Commit afc6080

Browse files
committed
fix(nix): stop the dev shell from copying the whole repository
The agent-skills source was built with nix-filter rooted at the repository, which forces the entire checkout into the store during every dev shell evaluation. Any edited file therefore produced a new root store path and the dev shell evaluation had to start from scratch. Use lib.fileset.toSource so only .agents/skills is read. The resulting agent-skills bundle store path is unchanged.
1 parent b9efb84 commit afc6080

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

‎nix/agent-skills.nix‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
{ inputs, lib, ... }:
2-
let
3-
root = ./..;
4-
in
52
{
63
perSystem =
74
{ system, ... }:
85
let
96
pkgs = import inputs.nixpkgs { inherit system; };
107
agentLib = inputs.agent-skills.lib.agent-skills;
11-
localSkills = inputs.nix-filter {
12-
inherit root;
13-
include = [ ".agents/skills" ];
8+
# A fileset reads only the skills tree; filtering from the repository root
9+
# copies the whole checkout into the store, so editing any file made the
10+
# dev shell evaluation start from scratch.
11+
localSkills = lib.fileset.toSource {
12+
root = ./..;
13+
fileset = ../.agents/skills;
1414
};
1515
sources = {
1616
local = {

0 commit comments

Comments
 (0)