Skip to content

Commit 1e0a771

Browse files
Copilotsteveej
andcommitted
Add skills-ref package and integrate with codex-acp
Co-authored-by: steveej <[email protected]>
1 parent f032cf1 commit 1e0a771

File tree

4 files changed

+58
-1
lines changed

4 files changed

+58
-1
lines changed

packages/codex-acp/default.nix

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,6 @@
1-
{ pkgs }: pkgs.callPackage ./package.nix { }
1+
{
2+
pkgs,
3+
perSystem,
4+
...
5+
}:
6+
pkgs.callPackage ./package.nix { inherit (perSystem.self) skills-ref; }

packages/codex-acp/package.nix

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
rustPlatform,
55
pkg-config,
66
openssl,
7+
makeWrapper,
8+
skills-ref,
79
}:
810
rustPlatform.buildRustPackage rec {
911
pname = "codex-acp";
@@ -20,6 +22,7 @@ rustPlatform.buildRustPackage rec {
2022

2123
nativeBuildInputs = [
2224
pkg-config
25+
makeWrapper
2326
];
2427

2528
buildInputs = [
@@ -28,6 +31,11 @@ rustPlatform.buildRustPackage rec {
2831

2932
doCheck = false;
3033

34+
postInstall = ''
35+
wrapProgram $out/bin/codex-acp \
36+
--prefix PATH : ${lib.makeBinPath [ skills-ref ]}
37+
'';
38+
3139
passthru.category = "ACP Ecosystem";
3240

3341
meta = with lib; {

packages/skills-ref/default.nix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{ pkgs }: pkgs.callPackage ./package.nix { }

packages/skills-ref/package.nix

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
{
2+
lib,
3+
python3,
4+
fetchFromGitHub,
5+
}:
6+
7+
python3.pkgs.buildPythonApplication rec {
8+
pname = "skills-ref";
9+
version = "0.1.0";
10+
pyproject = true;
11+
12+
src = fetchFromGitHub {
13+
owner = "agentskills";
14+
repo = "agentskills";
15+
rev = "main";
16+
hash = "sha256-nZLgAd+ixQtWknKew5M9N1xr8Bo1xbTmPFSvxcYcgS4=";
17+
};
18+
19+
sourceRoot = "source/skills-ref";
20+
21+
build-system = with python3.pkgs; [
22+
hatchling
23+
];
24+
25+
dependencies = with python3.pkgs; [
26+
click
27+
strictyaml
28+
];
29+
30+
pythonImportsCheck = [ "skills_ref" ];
31+
32+
passthru.category = "Utilities";
33+
34+
meta = with lib; {
35+
description = "Reference library for Agent Skills";
36+
homepage = "https://github.com/agentskills/agentskills/tree/main/skills-ref";
37+
license = licenses.asl20;
38+
sourceProvenance = with sourceTypes; [ fromSource ];
39+
maintainers = with maintainers; [ ];
40+
mainProgram = "skills-ref";
41+
platforms = platforms.all;
42+
};
43+
}

0 commit comments

Comments
 (0)