ctx7: install {plugins,rules,skills} to output

Also adds `__structuredAttrs` and `strictDeps` attributes.
This commit is contained in:
Thierry Delafontaine
2026-05-30 22:34:16 +02:00
parent b692cc2339
commit 92d2fb3fc6
+5
View File
@@ -18,6 +18,9 @@ stdenv.mkDerivation (finalAttrs: {
pname = "ctx7";
version = "0.4.4";
__structuredAttrs = true;
strictDeps = true;
src = fetchFromGitHub {
owner = "upstash";
repo = "context7";
@@ -61,6 +64,8 @@ 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
runHook postInstall
'';