ollama: only run service test on linux

Darwin currently attempts to build the nixos test, but is unable to,
which causes the whole `passthru.tests` on darwin to fail.
This commit is contained in:
abysssol 2024-08-13 09:37:35 -04:00
parent 11555c7701
commit 57ce70f361

View File

@ -213,7 +213,6 @@ goBuild (
passthru.tests =
{
inherit ollama;
service = nixosTests.ollama;
version = testers.testVersion {
inherit version;
package = ollama;
@ -221,6 +220,7 @@ goBuild (
}
// lib.optionalAttrs stdenv.isLinux {
inherit ollama-rocm ollama-cuda;
service = nixosTests.ollama;
service-cuda = nixosTests.ollama-cuda;
service-rocm = nixosTests.ollama-rocm;
};