summary refs log tree commit diff
path: root/pkgs/development/libraries/dbus
diff options
context:
space:
mode:
authorPeter Hoeg <peter@speartail.com>2016-09-20 15:21:08 +0800
committerDomen Kožar <domen@dev.si>2016-09-30 13:14:53 +0200
commit639e5401ff51d4c0075b5ceffcbdbfec64c67db3 (patch)
tree7cb5566c83ce58d4084401185421b790a3d36298 /pkgs/development/libraries/dbus
parent2a53b06e0661758ff2c206aa7e41764f1081c9b3 (diff)
downloadnixpkgs-639e5401ff51d4c0075b5ceffcbdbfec64c67db3.tar
nixpkgs-639e5401ff51d4c0075b5ceffcbdbfec64c67db3.tar.gz
nixpkgs-639e5401ff51d4c0075b5ceffcbdbfec64c67db3.tar.bz2
nixpkgs-639e5401ff51d4c0075b5ceffcbdbfec64c67db3.tar.lz
nixpkgs-639e5401ff51d4c0075b5ceffcbdbfec64c67db3.tar.xz
nixpkgs-639e5401ff51d4c0075b5ceffcbdbfec64c67db3.tar.zst
nixpkgs-639e5401ff51d4c0075b5ceffcbdbfec64c67db3.zip
dbus: add socket activation but do not enable it
The following changes are included:

1) install user unit files from upstream dbus
2) use absolute paths to config for --system and --session instances
3) make socket activation of user units configurable

There has been a number of PRs to address this, so this one does the
bare minimum, which is to make the functionality available and
configurable but defaults to off.

Related PRs:
 - #18382
 - #18222

(cherry picked from commit f7215c9b5b47dfb0a6dbe87ff33d7730729a32e5)
Signed-off-by: Domen Kožar <domen@dev.si>
Diffstat (limited to 'pkgs/development/libraries/dbus')
-rw-r--r--pkgs/development/libraries/dbus/default.nix5
1 files changed, 4 insertions, 1 deletions
diff --git a/pkgs/development/libraries/dbus/default.nix b/pkgs/development/libraries/dbus/default.nix
index bcf8933f072..361acf632fa 100644
--- a/pkgs/development/libraries/dbus/default.nix
+++ b/pkgs/development/libraries/dbus/default.nix
@@ -44,7 +44,11 @@ self =  stdenv.mkDerivation {
       "--localstatedir=/var"
       "--sysconfdir=/etc"
       "--with-session-socket-dir=/tmp"
+      "--with-system-pid-file=/run/dbus/pid"
+      "--with-system-socket=/run/dbus/system_bus_socket"
       "--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
@@ -81,4 +85,3 @@ self =  stdenv.mkDerivation {
     };
   };
 in self
-