From a5eb3b03ffff6e709412c7f3e1e57e04df2349ed Mon Sep 17 00:00:00 2001 From: rnhmjoj Date: Mon, 28 Nov 2022 14:46:44 +0100 Subject: [PATCH] cups: fix cups.socket unit The cups.socket unit shouldn't be part of cups.service: stopping the service would stop the socket and break subsequent socket activations. See https://github.com/apple/cups/issues/6005 --- pkgs/misc/cups/default.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkgs/misc/cups/default.nix b/pkgs/misc/cups/default.nix index c844dbffee40..a9c818a12f57 100644 --- a/pkgs/misc/cups/default.nix +++ b/pkgs/misc/cups/default.nix @@ -57,6 +57,11 @@ stdenv.mkDerivation rec { postPatch = '' substituteInPlace cups/testfile.c \ --replace 'cupsFileFind("cat", "/bin' 'cupsFileFind("cat", "${coreutils}/bin' + + # The cups.socket unit shouldn't be part of cups.service: stopping the + # 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 ''; nativeBuildInputs = [ pkg-config removeReferencesTo ];