uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
45
pkgs/development/libraries/dbus/make-dbus-conf.nix
Normal file
45
pkgs/development/libraries/dbus/make-dbus-conf.nix
Normal file
|
|
@ -0,0 +1,45 @@
|
|||
{ runCommand, writeText, libxslt, dbus
|
||||
, serviceDirectories ? []
|
||||
, suidHelper ? "/var/setuid-wrappers/dbus-daemon-launch-helper"
|
||||
, apparmor ? "disabled" # one of enabled, disabled, required
|
||||
}:
|
||||
|
||||
/* DBus has two configuration parsers -- normal and "trivial", which is used
|
||||
* for suid helper. Unfortunately the latter doesn't support <include>
|
||||
* 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 apparmor;
|
||||
preferLocalBuild = true;
|
||||
allowSubstitutes = false;
|
||||
XML_CATALOG_FILES = writeText "dbus-catalog.xml" ''
|
||||
<?xml version="1.0"?>
|
||||
<!DOCTYPE catalog PUBLIC
|
||||
"-//OASIS//DTD Entity Resolution XML Catalog V1.0//EN"
|
||||
"http://www.oasis-open.org/committees/entity/release/1.0/catalog.dtd">
|
||||
|
||||
<catalog xmlns="urn:oasis:names:tc:entity:xmlns:xml:catalog">
|
||||
<rewriteSystem
|
||||
systemIdStartString="http://www.freedesktop.org/standards/dbus/1.0/"
|
||||
rewritePrefix="file://${dbus}/share/xml/dbus-1/"/>
|
||||
</catalog>
|
||||
'';
|
||||
nativeBuildInputs = [ libxslt.bin ];
|
||||
}
|
||||
''
|
||||
mkdir -p $out
|
||||
|
||||
xsltproc --nonet \
|
||||
--stringparam serviceDirectories "$serviceDirectories" \
|
||||
--stringparam suidHelper "$suidHelper" \
|
||||
--stringparam apparmor "$apparmor" \
|
||||
${./make-system-conf.xsl} ${dbus}/share/dbus-1/system.conf \
|
||||
> $out/system.conf
|
||||
xsltproc --nonet \
|
||||
--stringparam serviceDirectories "$serviceDirectories" \
|
||||
--stringparam apparmor "$apparmor" \
|
||||
${./make-session-conf.xsl} ${dbus}/share/dbus-1/session.conf \
|
||||
> $out/session.conf
|
||||
''
|
||||
Loading…
Add table
Add a link
Reference in a new issue