colord: make the daemon disablable
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]: https://github.com/NixOS/nixpkgs/issues/179242
This commit is contained in:
parent
1c80cbf385
commit
46339db687
|
@ -26,6 +26,7 @@
|
||||||
, docbook_xml_dtd_412
|
, docbook_xml_dtd_412
|
||||||
, gtk-doc
|
, gtk-doc
|
||||||
, libxslt
|
, libxslt
|
||||||
|
, enableDaemon ? !stdenv.hostPlatform.isMusl || stdenv.hostPlatform.isStatic
|
||||||
}:
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
|
@ -56,6 +57,7 @@ stdenv.mkDerivation rec {
|
||||||
"-Dlibcolordcompat=true"
|
"-Dlibcolordcompat=true"
|
||||||
"-Dsane=true"
|
"-Dsane=true"
|
||||||
"-Dvapi=true"
|
"-Dvapi=true"
|
||||||
|
"-Ddaemon=${lib.boolToString enableDaemon}"
|
||||||
"-Ddaemon_user=colord"
|
"-Ddaemon_user=colord"
|
||||||
];
|
];
|
||||||
|
|
||||||
|
@ -83,10 +85,11 @@ stdenv.mkDerivation rec {
|
||||||
gusb
|
gusb
|
||||||
lcms2
|
lcms2
|
||||||
libgudev
|
libgudev
|
||||||
polkit
|
|
||||||
sane-backends
|
sane-backends
|
||||||
sqlite
|
sqlite
|
||||||
systemd
|
systemd
|
||||||
|
] ++ lib.optionals enableDaemon [
|
||||||
|
polkit
|
||||||
];
|
];
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
|
|
Loading…
Reference in a new issue