diff options
author | Weijia Wang <9713184+wegank@users.noreply.github.com> | 2023-06-03 01:35:10 +0200 |
---|---|---|
committer | Weijia Wang <9713184+wegank@users.noreply.github.com> | 2023-06-03 01:35:10 +0200 |
commit | 6bd9402c5ff2e6450689666e5fd6ae8c8ef3c70a (patch) | |
tree | 9efb54ba48e7f3d5481fa97b3ee86c5cfb3ee9c2 | |
parent | cc3ee6d82b575a5f105124498ebf01abcdf98604 (diff) |
cups: fix build on darwin
-rw-r--r-- | pkgs/misc/cups/default.nix | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/pkgs/misc/cups/default.nix b/pkgs/misc/cups/default.nix index abff4d8179750..44e46355d0bf3 100644 --- a/pkgs/misc/cups/default.nix +++ b/pkgs/misc/cups/default.nix @@ -1,6 +1,5 @@ { lib, stdenv , fetchurl -, fetchpatch , pkg-config , removeReferencesTo , zlib @@ -41,6 +40,9 @@ stdenv.mkDerivation rec { # service would stop the socket and break subsequent socket activations. # See https://github.com/apple/cups/issues/6005 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 ]; |