mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-09-28 19:00:46 +00:00
llama-cpp: run update script only for the main package (#563932)
This commit is contained in:
@@ -205,12 +205,16 @@ effectiveStdenv.mkDerivation (finalAttrs: {
|
||||
# the tests are failing as of 2025-08
|
||||
doCheck = false;
|
||||
|
||||
passthru = {
|
||||
passthru = lib.optionalAttrs (!cudaSupport && !rocmSupport && !vulkanSupport) {
|
||||
updateScript = ./update.sh;
|
||||
};
|
||||
|
||||
meta = {
|
||||
description = "Inference of Meta's LLaMA model (and others) in pure C/C++";
|
||||
description =
|
||||
"Inference of Meta's LLaMA model (and others) in pure C/C++"
|
||||
+ optionalString cudaSupport ", with CUDA support"
|
||||
+ optionalString rocmSupport ", with ROCm support"
|
||||
+ optionalString vulkanSupport ", with Vulkan support";
|
||||
homepage = "https://github.com/ggml-org/llama.cpp";
|
||||
license = lib.licenses.mit;
|
||||
mainProgram = "llama";
|
||||
|
||||
@@ -383,9 +383,10 @@ goBuild (finalAttrs: {
|
||||
service-rocm = nixosTests.ollama-rocm;
|
||||
service-vulkan = nixosTests.ollama-vulkan;
|
||||
};
|
||||
updateScript = ./update.sh;
|
||||
}
|
||||
// lib.optionalAttrs (!enableRocm && !enableCuda && !enableVulkan) { updateScript = ./update.sh; };
|
||||
// lib.optionalAttrs (!rocmRequested && !cudaRequested && !vulkanRequested) {
|
||||
updateScript = ./update.sh;
|
||||
};
|
||||
|
||||
meta = {
|
||||
description =
|
||||
|
||||
Reference in New Issue
Block a user