ollama: fix tests in darwin sandbox (#401214)

This commit is contained in:
Pavol Rusnak
2025-04-24 19:36:04 +02:00
committed by GitHub
+6
View File
@@ -239,6 +239,12 @@ goBuild (finalAttrs: {
__darwinAllowLocalNetworking = true;
# required for github.com/ollama/ollama/detect's tests
sandboxProfile = lib.optionalString stdenv.hostPlatform.isDarwin ''
(allow file-read* (subpath "/System/Library/Extensions"))
(allow iokit-open (iokit-user-client-class "AGXDeviceUserClient"))
'';
passthru = {
tests =
{