llm: add enable-llm-gguf override

This commit is contained in:
Philip Taron
2025-05-31 20:22:51 -07:00
parent ab5c974d2e
commit 85868f71a0
2 changed files with 5 additions and 2 deletions
+4 -1
View File
@@ -4,6 +4,7 @@
enable-llm-anthropic ? false,
enable-llm-cmd ? false,
enable-llm-gemini ? false,
enable-llm-gguf ? false,
}:
let
@@ -13,6 +14,7 @@ let
llm-anthropic
llm-cmd
llm-gemini
llm-gguf
;
in
@@ -22,6 +24,7 @@ toPythonApplication (
(finalAttrs.propagatedBuildInputs or [ ])
++ lib.optionals enable-llm-anthropic [ llm-anthropic ]
++ lib.optionals enable-llm-cmd [ llm-cmd ]
++ lib.optionals enable-llm-gemini [ llm-gemini ];
++ lib.optionals enable-llm-gemini [ llm-gemini ]
++ lib.optionals enable-llm-gguf [ llm-gguf ];
})
)
@@ -27,12 +27,12 @@ buildPythonPackage rec {
build-system = [
setuptools
llm
];
dependencies = [
httpx
llama-cpp-python
llm
];
pythonImportsCheck = [ "llm_gguf" ];