python3Packages.orjson: Disable failing tests on 32 bit
[NixPkgs.git] / pkgs / development / libraries / dbus / make-session-conf.xsl
bloba744905cdd39cc22c6e8f3c39401f62ded990d4c
1 <?xml version="1.0"?>
3 <!--
4 This script copies the original system.conf from the dbus
5 distribution, but sets paths from $serviceDirectories parameter
6 and suid helper from $suidHelper parameter.
7 -->
9 <xsl:stylesheet version="1.0"
10 xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
11 xmlns:str="http://exslt.org/strings"
12 extension-element-prefixes="str"
15 <xsl:output method='xml' encoding="UTF-8" doctype-system="busconfig.dtd" />
17 <xsl:param name="serviceDirectories" />
18 <xsl:param name="apparmor" />
20 <xsl:template match="/busconfig">
21 <busconfig>
22 <!-- We leave <standard_session_servicedirs/> because it includes XDG dirs and therefore user Nix profile. -->
23 <xsl:copy-of select="child::node()[name() != 'include' and name() != 'servicedir' and name() != 'includedir']" />
25 <!-- configure AppArmor -->
26 <apparmor mode="{$apparmor}"/>
28 <xsl:for-each select="str:tokenize($serviceDirectories)">
29 <servicedir><xsl:value-of select="." />/share/dbus-1/services</servicedir>
30 <includedir><xsl:value-of select="." />/etc/dbus-1/session.d</includedir>
31 <includedir><xsl:value-of select="." />/share/dbus-1/session.d</includedir>
32 </xsl:for-each>
33 </busconfig>
34 </xsl:template>
36 </xsl:stylesheet>