diff options
author | (cdep)illabout <cdep.illabout@gmail.com> | 2019-10-21 13:09:32 -0400 |
---|---|---|
committer | Niklas Hambüchen <mail@nh2.me> | 2019-10-28 15:24:44 +0100 |
commit | b72984e7a3a7eb44300897c7909e103a8fdb1670 (patch) | |
tree | 432a84529136c6264c4175d8d9841b32a0315d3a /pkgs/development/libraries/dbus | |
parent | d5db11ccbd6dce1d04835a17ef46098137c0b77e (diff) | |
download | nixpkgs-b72984e7a3a7eb44300897c7909e103a8fdb1670.tar nixpkgs-b72984e7a3a7eb44300897c7909e103a8fdb1670.tar.gz nixpkgs-b72984e7a3a7eb44300897c7909e103a8fdb1670.tar.bz2 nixpkgs-b72984e7a3a7eb44300897c7909e103a8fdb1670.tar.lz nixpkgs-b72984e7a3a7eb44300897c7909e103a8fdb1670.tar.xz nixpkgs-b72984e7a3a7eb44300897c7909e103a8fdb1670.tar.zst nixpkgs-b72984e7a3a7eb44300897c7909e103a8fdb1670.zip |
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.
Diffstat (limited to 'pkgs/development/libraries/dbus')
-rw-r--r-- | pkgs/development/libraries/dbus/default.nix | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/pkgs/development/libraries/dbus/default.nix b/pkgs/development/libraries/dbus/default.nix index 804f0e7fc85..014ccb48971 100644 --- a/pkgs/development/libraries/dbus/default.nix +++ b/pkgs/development/libraries/dbus/default.nix @@ -3,6 +3,7 @@ , fetchurl , pkgconfig , expat +, enableSystemd ? stdenv.isLinux && !stdenv.hostPlatform.isMusl , systemd , libX11 ? null , libICE ? null @@ -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"; @@ -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 = [ |