mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-09-30 20:00:10 +00:00
ctx7: use installAgentSkills (#563565)
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
lib,
|
||||
stdenv,
|
||||
fetchFromGitHub,
|
||||
installAgentSkills,
|
||||
makeWrapper,
|
||||
nix-update-script,
|
||||
versionCheckHook,
|
||||
@@ -33,8 +34,12 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
pnpm
|
||||
pnpmConfigHook
|
||||
makeWrapper
|
||||
installAgentSkills
|
||||
];
|
||||
|
||||
# the monorepo vendors the same skills for many agents and packages
|
||||
dontInstallAgentSkills = true;
|
||||
|
||||
pnpmDeps = fetchPnpmDeps {
|
||||
inherit (finalAttrs) pname version src;
|
||||
inherit pnpm;
|
||||
@@ -64,7 +69,9 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
makeWrapper ${nodejs}/bin/node $out/bin/ctx7 \
|
||||
--add-flags "$out/lib/ctx7/dist/index.js"
|
||||
|
||||
cp -R $src/{plugins,rules,skills} $out
|
||||
cp -R $src/{plugins,rules} $out
|
||||
installSkill skills/context7-cli
|
||||
installSkill skills/find-docs
|
||||
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
Reference in New Issue
Block a user