anchor.diff:    # also other parts than "libs" need this statically linked lib
     makeInternalLib = "(cd dbus && make libdbus-internal.la)";
   
  -  systemdOrEmpty = lib.optional stdenv.isLinux systemd;
  -
     # A generic builder for individual parts (subdirs) of D-Bus
     dbus_drv = name: subdirs: merge: stdenv.mkDerivation (lib.mergeAttrsByFuncDefaultsClean [{
   
  
positive.code:     # Enable X11 autolaunch support in libdbus. This doesn't actually depend on X11
      # (it just execs dbus-launch in dbus.tools), contrary to what the configure script demands.
      NIX_CFLAGS_COMPILE = "-DDBUS_ENABLE_X11_AUTOLAUNCH=1";
      buildInputs = [ systemdOrEmpty ];
      meta.platforms = stdenv.lib.platforms.all;
    };
  
  
negative.code: 
    tools = dbus_drv "tools" "tools bus" {
      preBuild = makeInternalLib;
      buildInputs = buildInputsX ++ [ libsystemd libs ];
      NIX_CFLAGS_LINK = "-Wl,--as-needed " + "-ldbus-1";
  
      # don't provide another dbus-1.pc (with incorrect include and link dirs),
  