forked from mirrors/nixpkgs
dbus: Merge tools and daemon
This resolves a cyclic dependency: the daemon depends on tools (for dbus-send) while tools depends on the daemon. Keeping them separate doesn't seem very useful in any case.
This commit is contained in:
parent
baffee02b8
commit
83b43cfe51
|
@ -84,9 +84,9 @@ let
|
|||
|
||||
inherit libs;
|
||||
|
||||
tools = dbus_drv "tools" "tools" {
|
||||
configureFlags = [ "--with-dbus-daemondir=${daemon}/bin" ];
|
||||
buildInputs = buildInputsX ++ systemdOrEmpty ++ [ libs daemon ];
|
||||
tools = dbus_drv "tools" "tools bus" {
|
||||
preBuild = makeInternalLib;
|
||||
buildInputs = buildInputsX ++ systemdOrEmpty ++ [ libs ];
|
||||
NIX_CFLAGS_LINK =
|
||||
stdenv.lib.optionalString (!stdenv.isDarwin) "-Wl,--as-needed "
|
||||
+ "-ldbus-1";
|
||||
|
@ -94,10 +94,7 @@ let
|
|||
meta.platforms = stdenv.lib.platforms.all;
|
||||
};
|
||||
|
||||
daemon = dbus_drv "daemon" "bus" {
|
||||
preBuild = makeInternalLib;
|
||||
buildInputs = systemdOrEmpty;
|
||||
};
|
||||
daemon = tools;
|
||||
|
||||
docs = dbus_drv "docs" "doc" {
|
||||
postInstall = ''rm -r "$out/lib"'';
|
||||
|
|
Loading…
Reference in a new issue