{ runCommand, writeText, libxslt, dbus , serviceDirectories ? [] , suidHelper ? "/var/setuid-wrappers/dbus-daemon-launch-helper" }: /* DBus has two configuration parsers -- normal and "trivial", which is used * for suid helper. Unfortunately the latter doesn't support * directive. That means that we can't just place our configuration to * *-local.conf -- it needs to be in the main configuration file. */ runCommand "dbus-1" { inherit serviceDirectories suidHelper; preferLocalBuild = true; XML_CATALOG_FILES = writeText "dbus-catalog.xml" '' ''; nativeBuildInputs = [ libxslt ]; } '' mkdir -p $out xsltproc --nonet \ --stringparam serviceDirectories "$serviceDirectories" \ --stringparam suidHelper "$suidHelper" \ ${./make-system-conf.xsl} ${dbus}/share/dbus-1/system.conf \ > $out/system.conf xsltproc --nonet \ --stringparam serviceDirectories "$serviceDirectories" \ ${./make-session-conf.xsl} ${dbus}/share/dbus-1/session.conf \ > $out/session.conf ''