Skip to content

Commit

Permalink
colord: make the daemon disablable
Browse files Browse the repository at this point in the history
We can't build the daemon in pkgsMusl, because rustc does not support
dynamic Musl targets[1].  But it still makes sense to support the rest
of colord, because an application should still be able to link against
it to talk to a colord daemon built in some other way (e.g. provided
by a different distro).

[1]: #179242
  • Loading branch information
alyssais committed Jul 1, 2022
1 parent 1c80cbf commit 46339db
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pkgs/tools/misc/colord/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
, docbook_xml_dtd_412
, gtk-doc
, libxslt
, enableDaemon ? !stdenv.hostPlatform.isMusl || stdenv.hostPlatform.isStatic
}:

stdenv.mkDerivation rec {
Expand Down Expand Up @@ -56,6 +57,7 @@ stdenv.mkDerivation rec {
"-Dlibcolordcompat=true"
"-Dsane=true"
"-Dvapi=true"
"-Ddaemon=${lib.boolToString enableDaemon}"
"-Ddaemon_user=colord"
];

Expand Down Expand Up @@ -83,10 +85,11 @@ stdenv.mkDerivation rec {
gusb
lcms2
libgudev
polkit
sane-backends
sqlite
systemd
] ++ lib.optionals enableDaemon [
polkit
];

postInstall = ''
Expand Down

0 comments on commit 46339db

Please sign in to comment.