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:     "-Dsysconfdir=/etc"
      "-Dsysconfdir_install=${placeholder "out"}/etc"
      "-Dudevrulesdir=${placeholder "out"}/lib/udev/rules.d"
  
      # tests fail on Darwin because of timeouts
      "-Dtests=${if stdenv.isLinux then "true" else "false"}"
    ]
    ++ lib.optional (stdenv.isLinux && useSystemd) "-Dsystemduserunitdir=${placeholder "out"}/lib/systemd/user";
  
    doCheck = true;
    preCheck = ''
      export HOME=$(mktemp -d)
    '';
  
negative.code:     "-Dlirc=${if remoteControlSupport then "enabled" else "disabled"}"
      "-Dopenssl=${if airtunesSupport then "enabled" else "disabled"}"
      "-Dorc=disabled"
      "-Dsystemd=${if useSystemd && !libOnly then "enabled" else "disabled"}"
      "-Dtcpwrap=disabled"
      "-Dudev=${if !libOnly then "enabled" else "disabled"}"
  