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.
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user