mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-21 16:11:22 +00:00
ramalama: wrap all deps when withPodman==false, except podman (#471892)
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