about summary refs log tree commit diff
path: root/pkgs/misc
diff options
context:
space:
mode:
authorMichele Guerini Rocco <rnhmjoj@users.noreply.github.com>2022-12-21 23:06:00 +0100
committerGitHub <noreply@github.com>2022-12-21 23:06:00 +0100
commit5dff7733aac371c0390b2e8b52935883e4762031 (patch)
tree685a4e9865a9f5375ac8e5bd03d5258747df0c73 /pkgs/misc
parentdac3b0d87329edf225ea7d2ed68b9ab79ca8c53b (diff)
parent4f67365482305a0fec444b725b131c82c563982b (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.nix5
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 ];