llama-cpp: run update script only for the main package (#563932)

This commit is contained in:
Gaétan Lepage
2026-09-16 15:38:56 +00:00
committed by GitHub
2 changed files with 9 additions and 4 deletions

View File

@@ -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";

View File

@@ -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 =