anchor.diff:      };
   
       patches = [
  -        ./ignore-missing-includedirs.patch
  -        ./ucred-dirty-hack.patch
  -        ./no-create-dirs.patch
  -      ]
  -      ++ lib.optional (stdenv.isLinux) ./implement-getgrouplist.patch
  -      ;
  +      ./ignore-missing-includedirs.patch
  +      ./ucred-dirty-hack.patch
  +      ./no-create-dirs.patch
  +      ./implement-getgrouplist.patch
  +    ];
   
       # build only the specified subdirs
       postPatch = "sed '/SUBDIRS/s/=.*/=" + subdirs + "/' -i Makefile.am\n"
  
positive.code:   # 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 [{
  
  
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),
  