ramalama: wrap all deps when withPodman==false, except podman

Before the change, ramalama erroneously excluded all deps from
wrapProgram if withPodman was false. Now only podman inclusion in the
closure is controlled by withPodman argument; other deps are always
included.

(cherry picked from commit 328e46f2d5)
This commit is contained in:
Ihar Hrachyshka
2025-12-18 00:39:53 -05:00
committed by github-actions[bot]
parent 0e6f56bbb8
commit ff3574c816

View File

@@ -50,21 +50,21 @@ python3Packages.buildPythonApplication (finalAttrs: {
make docs
'';
postInstall = lib.optionalString withPodman ''
wrapProgram $out/bin/ramalama \
--prefix PATH : ${
lib.makeBinPath (
[
llama-cpp-vulkan
podman
]
++ (with python3Packages; [
huggingface-hub
mlx-lm
])
)
}
'';
postInstall =
let
binPackages = [
llama-cpp-vulkan
]
++ (with python3Packages; [
huggingface-hub
mlx-lm
])
++ lib.optional withPodman podman;
in
''
wrapProgram $out/bin/ramalama \
--prefix PATH : ${lib.makeBinPath binPackages}
'';
pythonImportsCheck = [
"ramalama"