cups: fix build on darwin
This commit is contained in:
parent
cc3ee6d82b
commit
6bd9402c5f
1 changed files with 3 additions and 1 deletions
|
@ -1,6 +1,5 @@
|
||||||
{ lib, stdenv
|
{ lib, stdenv
|
||||||
, fetchurl
|
, fetchurl
|
||||||
, fetchpatch
|
|
||||||
, pkg-config
|
, pkg-config
|
||||||
, removeReferencesTo
|
, removeReferencesTo
|
||||||
, zlib
|
, zlib
|
||||||
|
@ -41,6 +40,9 @@ stdenv.mkDerivation rec {
|
||||||
# service would stop the socket and break subsequent socket activations.
|
# service would stop the socket and break subsequent socket activations.
|
||||||
# See https://github.com/apple/cups/issues/6005
|
# See https://github.com/apple/cups/issues/6005
|
||||||
sed -i '/PartOf=cups.service/d' scheduler/cups.socket.in
|
sed -i '/PartOf=cups.service/d' scheduler/cups.socket.in
|
||||||
|
'' + lib.optionalString (stdenv.isDarwin && lib.versionOlder stdenv.targetPlatform.darwinSdkVersion "12") ''
|
||||||
|
substituteInPlace backend/usb-darwin.c \
|
||||||
|
--replace "kIOMainPortDefault" "kIOMasterPortDefault"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
nativeBuildInputs = [ pkg-config removeReferencesTo ];
|
nativeBuildInputs = [ pkg-config removeReferencesTo ];
|
||||||
|
|
Loading…
Reference in a new issue