diff options
author | Alyssa Ross <hi@alyssa.is> | 2022-06-29 09:48:50 +0000 |
---|---|---|
committer | Alyssa Ross <hi@alyssa.is> | 2022-07-01 14:29:38 +0000 |
commit | 46339db687cb7daf92af20db1c14152ade29c4a1 (patch) | |
tree | 11ab9730c2cc1a1478f863ad5270b44731f5fcdc /pkgs/tools/misc/colord | |
parent | 1c80cbf38527e89a79963e9627399e481b344112 (diff) |
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
Diffstat (limited to 'pkgs/tools/misc/colord')
-rw-r--r-- | pkgs/tools/misc/colord/default.nix | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/pkgs/tools/misc/colord/default.nix b/pkgs/tools/misc/colord/default.nix index 079f75c4ca86f..77d06a6848ac3 100644 --- a/pkgs/tools/misc/colord/default.nix +++ b/pkgs/tools/misc/colord/default.nix @@ -26,6 +26,7 @@ , docbook_xml_dtd_412 , gtk-doc , libxslt +, enableDaemon ? !stdenv.hostPlatform.isMusl || stdenv.hostPlatform.isStatic }: stdenv.mkDerivation rec { @@ -56,6 +57,7 @@ stdenv.mkDerivation rec { "-Dlibcolordcompat=true" "-Dsane=true" "-Dvapi=true" + "-Ddaemon=${lib.boolToString enableDaemon}" "-Ddaemon_user=colord" ]; @@ -83,10 +85,11 @@ stdenv.mkDerivation rec { gusb lcms2 libgudev - polkit sane-backends sqlite systemd + ] ++ lib.optionals enableDaemon [ + polkit ]; postInstall = '' |