mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-10 19:55:41 +03:00
22 lines
326 B
Nix
22 lines
326 B
Nix
{
|
|
runCommand,
|
|
python,
|
|
yq,
|
|
}:
|
|
let
|
|
venv = python.withPackages (ps: [
|
|
ps.llm
|
|
ps.llm-openai-plugin
|
|
]);
|
|
in
|
|
runCommand "llm-openai-plugin-test-llm-plugin"
|
|
{
|
|
nativeBuildInputs = [
|
|
venv
|
|
yq
|
|
];
|
|
}
|
|
''
|
|
llm plugins | yq --exit-status 'any(.name == "llm-openai-plugin")'
|
|
touch "$out"
|
|
''
|