ollama: fix tests in darwin sandbox

closes https://github.com/NixOS/nixpkgs/issues/345333
This commit is contained in:
Winter
2025-04-24 19:17:31 +02:00
committed by Pavol Rusnak
parent e6d927fcfd
commit d050496fb8
+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 =
{