@@ -3,6 +3,7 @@
33, fetchurl
44, pkgconfig
55, expat
6+, enableSystemd ? stdenv.isLinux && !stdenv.hostPlatform.isMusl
67, systemd
78, libX11 ? null
89, libICE ? null
@@ -15,6 +16,8 @@ assert
1516 x11Support ->
1617 libX11 != null && libICE != null && libSM != null;
1718
19+assert enableSystemd -> systemd != null;
20+
1821stdenv.mkDerivation rec {
1922 pname = "dbus";
2023 version = "1.12.16";
@@ -50,11 +53,12 @@ stdenv.mkDerivation rec {
5053 expat
5154 ];
5255
53− buildInputs = lib.optionals x11Support [
54− libX11
55− libICE
56− libSM
57− ] ++ lib.optional stdenv.isLinux systemd;
56+ buildInputs =
57+ lib.optionals x11Support [
58+ libX11
59+ libICE
60+ libSM
61+ ] ++ lib.optional enableSystemd systemd;
5862 # ToDo: optional selinux?
5963
6064 configureFlags = [