Files

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

28 lines
444 B
Nix
Raw Permalink Normal View History

2025-10-09 14:15:47 +02:00
{
cacert,
runCommand,
writableTmpDirAsHomeHook,
yq,
llm,
plugin,
}:
let
venv = llm.pythonModule.withPackages (_: [
llm
plugin
]);
in
runCommand "${plugin.pname}-test"
{
nativeBuildInputs = [
venv
writableTmpDirAsHomeHook
yq
];
env.SSL_CERT_FILE = "${cacert}/etc/ssl/certs/ca-bundle.crt";
}
''
llm plugins | yq --exit-status 'any(.name == "${plugin.pname}")'
touch "$out"
''