ollama: add updateScript

This commit is contained in:
Adam Stephens 2024-09-19 09:26:49 -04:00
parent fa09c7cca3
commit 0c0ef784a3
No known key found for this signature in database

View File

@ -8,6 +8,7 @@
makeWrapper,
stdenv,
addDriverRunpath,
nix-update-script,
cmake,
gcc12,
@ -199,20 +200,24 @@ goBuild {
"-X=github.com/ollama/ollama/server.mode=release"
];
passthru.tests =
{
inherit ollama;
version = testers.testVersion {
inherit version;
package = ollama;
passthru = {
tests =
{
inherit ollama;
version = testers.testVersion {
inherit version;
package = ollama;
};
}
// lib.optionalAttrs stdenv.isLinux {
inherit ollama-rocm ollama-cuda;
service = nixosTests.ollama;
service-cuda = nixosTests.ollama-cuda;
service-rocm = nixosTests.ollama-rocm;
};
}
// lib.optionalAttrs stdenv.isLinux {
inherit ollama-rocm ollama-cuda;
service = nixosTests.ollama;
service-cuda = nixosTests.ollama-cuda;
service-rocm = nixosTests.ollama-rocm;
};
updateScript = nix-update-script { };
};
meta = {
description =