mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-22 08:30:57 +00:00
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:
committed by
github-actions[bot]
parent
0e6f56bbb8
commit
ff3574c816
@@ -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