dbus: Put DTDs into $out instead of $doc

First of all, these "documents" are not really documentation, so it
really doesn't make much sense to put it into $doc.

The main point however is that the installer tests are failing since
this was introduced in ac0cdc1952.

One way to circumvent this is putting dbus.doc into
system.extraDependencies of the installer tests, but given the first
point this sounds a bit odd to me.

So I went for the second way of putting it into $out, because it's now
basically necessary to build a NixOS system.

With this the NixOS installer tests should now work again, although I
have only tested this with the installer.simple test.

Signed-off-by: aszlig <aszlig@redmoonstudios.org>
Cc: @abbradar
This commit is contained in:
aszlig 2017-02-20 03:16:26 +01:00
parent fc6684054d
commit c5b2714bc7
No known key found for this signature in database
GPG Key ID: 1DE8E48E57DB5436
2 changed files with 3 additions and 3 deletions

View File

@ -67,8 +67,8 @@ self = stdenv.mkDerivation {
installFlags = [ "sysconfdir=$(out)/etc" "datadir=$(out)/share" ];
postInstall = ''
mkdir -p $doc/share/xml/dbus
cp doc/*.dtd $doc/share/xml/dbus
mkdir -p "$out/share/xml/dbus"
cp doc/*.dtd "$out/share/xml/dbus"
'';
# it's executed from $lib by absolute path

View File

@ -20,7 +20,7 @@ runCommand "dbus-1"
<catalog xmlns="urn:oasis:names:tc:entity:xmlns:xml:catalog">
<rewriteSystem
systemIdStartString="http://www.freedesktop.org/standards/dbus/1.0/"
rewritePrefix="file://${dbus.doc}/share/xml/dbus/"/>
rewritePrefix="file://${dbus}/share/xml/dbus/"/>
</catalog>
'';
}