Skip to content

Commit

Permalink
dbus: enable building with musl
Browse files Browse the repository at this point in the history
When building dbus with musl, it must not take systemd as a buildInput,
because systemd is not able to be build with musl.
  • Loading branch information
cdepillabout authored and nh2 committed Oct 28, 2019
1 parent d5db11c commit b72984e
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions pkgs/development/libraries/dbus/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
, fetchurl
, pkgconfig
, expat
, enableSystemd ? stdenv.isLinux && !stdenv.hostPlatform.isMusl
, systemd
, libX11 ? null
, libICE ? null
Expand All @@ -15,6 +16,8 @@ assert
x11Support ->
libX11 != null && libICE != null && libSM != null;

assert enableSystemd -> systemd != null;

stdenv.mkDerivation rec {
pname = "dbus";
version = "1.12.16";
Expand Down Expand Up @@ -50,11 +53,12 @@ stdenv.mkDerivation rec {
expat
];

buildInputs = lib.optionals x11Support [
libX11
libICE
libSM
] ++ lib.optional stdenv.isLinux systemd;
buildInputs =
lib.optionals x11Support [
libX11
libICE
libSM
] ++ lib.optional enableSystemd systemd;
# ToDo: optional selinux?

configureFlags = [
Expand Down

0 comments on commit b72984e

Please sign in to comment.