diff options
author | Michele Guerini Rocco <rnhmjoj@users.noreply.github.com> | 2022-12-21 23:06:00 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-21 23:06:00 +0100 |
commit | 5dff7733aac371c0390b2e8b52935883e4762031 (patch) | |
tree | 685a4e9865a9f5375ac8e5bd03d5258747df0c73 /pkgs/misc | |
parent | dac3b0d87329edf225ea7d2ed68b9ab79ca8c53b (diff) | |
parent | 4f67365482305a0fec444b725b131c82c563982b (diff) |
Merge pull request #203454 from rnhmjoj/pr-cups-socket
nixos/hardware/printers: stop cupsd when unneeded
Diffstat (limited to 'pkgs/misc')
-rw-r--r-- | pkgs/misc/cups/default.nix | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/pkgs/misc/cups/default.nix b/pkgs/misc/cups/default.nix index 30e0ce44ca4ae..b707647377ca3 100644 --- a/pkgs/misc/cups/default.nix +++ b/pkgs/misc/cups/default.nix @@ -38,6 +38,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 ]; |