anchor.diff:  , avahi-compat
   
     # MacOS / darwin
  +, darwin
   , ApplicationServices
   , Carbon
   , Cocoa
  
positive.code:   patches = [
      # Without this OpenSSL from nixpkgs is not detected
      ./darwin-non-static-openssl.patch
      # We cannot include UserNotifications because of a build failure in the Apple SDK.
      # The functions used from it are already implicitly included anyways.
      ./darwin-no-UserNotifications-includes.patch
  
negative.code:     Cocoa
      CoreServices
      ScreenSaver
    ] ++ lib.optionals (stdenv.isDarwin && darwin.apple_sdk.frameworks ? UserNotifications) [
      darwin.apple_sdk.frameworks.UserNotifications
    ] ++ lib.optionals stdenv.isLinux [
      util-linux
      libselinux
  