Unverified Commit d050496f authored by Winter's avatar Winter Committed by Pavol Rusnak
Browse files

ollama: fix tests in darwin sandbox

parent e6d927fc
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -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 =
      {