Files
nixpkgs/pkgs/development/python-modules/llm-cmd/tests/llm-plugin.nix
T
2025-02-25 19:23:44 -08:00

23 lines
296 B
Nix

{
runCommand,
python,
yq,
}:
let
venv = python.withPackages (ps: [
ps.llm
ps.llm-cmd
]);
in
runCommand "llm-cmd-test-llm-plugin"
{
nativeBuildInputs = [
venv
yq
];
}
''
llm plugins | yq --exit-status 'any(.name == "llm-cmd")'
touch "$out"
''