anchor.diff:              sed 's,\$(top_builddir)/dbus/\(libdbus-[0-9]\),${libs}/lib/\1,g' -i "$mfile"
             done
           '';
  +
  +    nativeBuildInputs = [ pkgconfig ];
  +    propagatedBuildInputs = [ expat ];
  +    buildInputs = [ autoconf automake libtool ]; # ToDo: optional selinux?
  +
  +    preConfigure = ''
  +      patchShebangs .
  +      substituteInPlace tools/Makefile.am --replace 'install-localstatelibDATA:' 'disabled:'
  +      autoreconf -fi
  +    '';
  +
  +    configureFlags = [
  +      "--localstatedir=/var"
  +      "--sysconfdir=/etc"
  +      "--with-session-socket-dir=/tmp"
  +      "--with-systemdsystemunitdir=$(out)/lib/systemd"
  +    ];
  +
  +    enableParallelBuilding = true;
  +
  +    doCheck = true;
  +
  +    installFlags = "sysconfdir=$(out)/etc";
   
     } merge ]);
   
  
positive.code: , libX11, libICE, libSM, useX11 ? stdenv.isLinux }:
  
  let
    version = "1.6.12"; # 1.7.* isn't recommended, even for gnome 3.8
    sha256 = "14pfh2ksn4srfry752kf1jy3c61hklcs9fx2xglw2ifhsszplypn";
  
    inherit (stdenv) lib;
  
  
negative.code:       inherit sha256;
      };
  
      patches = [
          ./ignore-missing-includedirs.patch
          ./ucred-dirty-hack.patch
          ./no-create-dirs.patch
        ]
        ++ lib.optional (stdenv.isSunOS || stdenv.isLinux) ./implement-getgrouplist.patch
        ;
  
      # build only the specified subdirs
      postPatch = "sed '/SUBDIRS/s/=.*/=" + subdirs + "/' -i Makefile.am\n"
  