cups: enable compiling with musl
When compiling `cups` with `pkgsMusl`, `cups` can't depend on `systemd` because `systemd` is not able to be built with musl.
This commit is contained in:
parent
97a5c413a0
commit
664823c11c
@ -1,9 +1,27 @@
|
|||||||
{ stdenv, fetchurl, pkgconfig, removeReferencesTo
|
{ stdenv
|
||||||
, zlib, libjpeg, libpng, libtiff, pam, dbus, systemd, acl, gmp, darwin
|
, fetchurl
|
||||||
, libusb ? null, gnutls ? null, avahi ? null, libpaper ? null
|
, pkgconfig
|
||||||
|
, removeReferencesTo
|
||||||
|
, zlib
|
||||||
|
, libjpeg
|
||||||
|
, libpng
|
||||||
|
, libtiff
|
||||||
|
, pam
|
||||||
|
, dbus
|
||||||
|
, enableSystemd ? stdenv.isLinux && !stdenv.hostPlatform.isMusl
|
||||||
|
, systemd ? null
|
||||||
|
, acl
|
||||||
|
, gmp
|
||||||
|
, darwin
|
||||||
|
, libusb ? null
|
||||||
|
, gnutls ? null
|
||||||
|
, avahi ? null
|
||||||
|
, libpaper ? null
|
||||||
, coreutils
|
, coreutils
|
||||||
}:
|
}:
|
||||||
|
|
||||||
|
assert enableSystemd -> systemd != null;
|
||||||
|
|
||||||
### IMPORTANT: before updating cups, make sure the nixos/tests/printing.nix test
|
### IMPORTANT: before updating cups, make sure the nixos/tests/printing.nix test
|
||||||
### works at least for your platform.
|
### works at least for your platform.
|
||||||
|
|
||||||
@ -33,7 +51,10 @@ stdenv.mkDerivation rec {
|
|||||||
nativeBuildInputs = [ pkgconfig removeReferencesTo ];
|
nativeBuildInputs = [ pkgconfig removeReferencesTo ];
|
||||||
|
|
||||||
buildInputs = [ zlib libjpeg libpng libtiff libusb gnutls libpaper ]
|
buildInputs = [ zlib libjpeg libpng libtiff libusb gnutls libpaper ]
|
||||||
++ optionals stdenv.isLinux [ avahi pam dbus systemd acl ]
|
++ optionals stdenv.isLinux [ avahi pam dbus ]
|
||||||
|
++ optional enableSystemd systemd
|
||||||
|
# Separate from above only to not modify order, to avoid mass rebuilds; merge this with the above at next big change.
|
||||||
|
++ optionals stdenv.isLinux [ acl ]
|
||||||
++ optionals stdenv.isDarwin (with darwin; [
|
++ optionals stdenv.isDarwin (with darwin; [
|
||||||
configd apple_sdk.frameworks.ApplicationServices
|
configd apple_sdk.frameworks.ApplicationServices
|
||||||
]);
|
]);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user