File tree Expand file tree Collapse file tree 4 files changed +58
-1
lines changed
Expand file tree Collapse file tree 4 files changed +58
-1
lines changed Original file line number Diff line number Diff line change 1- { pkgs } : pkgs . callPackage ./package.nix { }
1+ {
2+ pkgs ,
3+ perSystem ,
4+ ...
5+ } :
6+ pkgs . callPackage ./package.nix { inherit ( perSystem . self ) skills-ref ; }
Original file line number Diff line number Diff line change 44 rustPlatform ,
55 pkg-config ,
66 openssl ,
7+ makeWrapper ,
8+ skills-ref ,
79} :
810rustPlatform . 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 ; {
Original file line number Diff line number Diff line change 1+ { pkgs } : pkgs . callPackage ./package.nix { }
Original file line number Diff line number Diff line change 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+ }
You can’t perform that action at this time.
0 commit comments