git.iko.soy/typeable/nixpkgs
on master help sign in
dbus: enable building with musl

When building dbus with musl, it must not take systemd as a buildInput, because systemd is not able to be build with musl.

commitb72984e7a3a7eb44300897c7909e103a8fdb1670 author(cdep)illabout <cdep.illabout@gmail.com> dateMon 21 Oct 2019, 13:09 (7 years ago) parentd5db11c
1 file changed+9−5
pkgs/development/libraries/dbus/default.nix+9−5
pkgs/development/libraries/dbus/default.nix+9−5
@@ -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 = [