ollama: fix tests in darwin sandbox
closes https://github.com/NixOS/nixpkgs/issues/345333
This commit is contained in:
@@ -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 =
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user