anchor.diff:      # Install sysconfdir files inside of the nix store,
       # but use a conventional runtime sysconfdir outside the store
       ./add-option-for-installation-sysconfdir.patch
  -
  +  ] ++ lib.optionals stdenv.isDarwin [
       # https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/654
       ./0001-Make-gio-2.0-optional-when-gsettings-is-disabled.patch
   
  
positive.code:     "-Dlirc=${if remoteControlSupport then "enabled" else "disabled"}"
      "-Dopenssl=${if airtunesSupport then "enabled" else "disabled"}"
      "-Dorc=disabled"
      "-Doss-output=${if stdenv.isLinux then "enabled" else "disabled"}"
      "-Dsystemd=${if useSystemd && !libOnly then "enabled" else "disabled"}"
      "-Dtcpwrap=disabled"
      "-Dudev=${if !libOnly then "enabled" else "disabled"}"
  
negative.code:     "-Dbluez5-gstreamer=${if (!libOnly && bluetoothSupport && advancedBluetoothCodecs) then "enabled" else "disabled"}"
      "-Ddatabase=simple"
      "-Ddoxygen=false"
      "-Delogind=disabled"
      # gsettings does not support cross-compilation
      "-Dgsettings=${if stdenv.isLinux && (stdenv.buildPlatform == stdenv.hostPlatform) then "enabled" else "disabled"}"
      "-Dgstreamer=disabled"
  