Merge pull request #22354 from abbradar/dbus-etc

dbus: don't search for units in current-system
This commit is contained in:
Nikolay Amiantov 2017-02-06 14:04:01 +03:00 committed by GitHub
commit 23d47ac2e6

View File

@ -11,6 +11,7 @@ let
self = stdenv.mkDerivation {
name = "dbus-${version}";
inherit version;
src = fetchurl {
url = "http://dbus.freedesktop.org/releases/dbus/dbus-${version}.tar.gz";
@ -49,8 +50,6 @@ self = stdenv.mkDerivation {
"--with-systemdsystemunitdir=$(out)/etc/systemd/system"
"--with-systemduserunitdir=$(out)/etc/systemd/user"
"--enable-user-session"
# this package installs nothing into those dirs and they create a dependency
"--datadir=/run/current-system/sw/share"
"--libexecdir=$(out)/libexec" # we don't need dbus-daemon-launch-helper
] ++ lib.optional (!x11Support) "--without-x";
@ -64,7 +63,7 @@ self = stdenv.mkDerivation {
doCheck = true;
installFlags = "sysconfdir=$(out)/etc datadir=$(out)/share";
installFlags = [ "sysconfdir=$(out)/etc" ];
# it's executed from $lib by absolute path
postFixup = ''