about summary refs log tree commit diff
path: root/pkgs/misc/drivers/hplip
diff options
context:
space:
mode:
authorYarny0 <41838844+Yarny0@users.noreply.github.com>2019-07-13 09:25:56 +0200
committerYarny0 <41838844+Yarny0@users.noreply.github.com>2019-07-14 10:15:38 +0200
commit5aafd1d0dba2800e14421b3f93721e8b2d1cd0f7 (patch)
tree5581a4ee990084eb8f3e6b2cf01430171088da64 /pkgs/misc/drivers/hplip
parent60311e09576528982582bf9cf1eb86c109a72387 (diff)
downloadnixlib-5aafd1d0dba2800e14421b3f93721e8b2d1cd0f7.tar
nixlib-5aafd1d0dba2800e14421b3f93721e8b2d1cd0f7.tar.gz
nixlib-5aafd1d0dba2800e14421b3f93721e8b2d1cd0f7.tar.bz2
nixlib-5aafd1d0dba2800e14421b3f93721e8b2d1cd0f7.tar.lz
nixlib-5aafd1d0dba2800e14421b3f93721e8b2d1cd0f7.tar.xz
nixlib-5aafd1d0dba2800e14421b3f93721e8b2d1cd0f7.tar.zst
nixlib-5aafd1d0dba2800e14421b3f93721e8b2d1cd0f7.zip
hplip: udev rule: drop `nohup` instead of patching it
hplip's udev rule uses `nohup` to attempt to detach
its printer configuration script from the udev process.
However, this attempt is futile as udev
tracks its child processes with cgroups:
https://unix.stackexchange.com/a/243648

The hardcoded path to `nohup` was patched to use Nix' `nohup`.
This commit alters the patch script so
that it simply drops the call to `nohup`.
Diffstat (limited to 'pkgs/misc/drivers/hplip')
-rw-r--r--pkgs/misc/drivers/hplip/3.16.11.nix2
-rw-r--r--pkgs/misc/drivers/hplip/3.18.5.nix2
-rw-r--r--pkgs/misc/drivers/hplip/default.nix2
3 files changed, 3 insertions, 3 deletions
diff --git a/pkgs/misc/drivers/hplip/3.16.11.nix b/pkgs/misc/drivers/hplip/3.16.11.nix
index 5e275a1f2b3d..4e9b4cbf0ae9 100644
--- a/pkgs/misc/drivers/hplip/3.16.11.nix
+++ b/pkgs/misc/drivers/hplip/3.16.11.nix
@@ -176,7 +176,7 @@ pythonPackages.buildPythonApplication {
     # Needs a lot of patching but might save someone a bit of confusion:
     substituteInPlace $out/etc/udev/rules.d/56-hpmud.rules \
       --replace {,${bash}}/bin/sh \
-      --replace {/usr,${coreutils}}/bin/nohup \
+      --replace /usr/bin/nohup "" \
       --replace {,${utillinux}/bin/}logger \
       --replace {/usr,$out}/bin
   '';
diff --git a/pkgs/misc/drivers/hplip/3.18.5.nix b/pkgs/misc/drivers/hplip/3.18.5.nix
index 9c9694edbd43..7da6b2db930b 100644
--- a/pkgs/misc/drivers/hplip/3.18.5.nix
+++ b/pkgs/misc/drivers/hplip/3.18.5.nix
@@ -208,7 +208,7 @@ pythonPackages.buildPythonApplication {
     # Needs a lot of patching but might save someone a bit of confusion:
     substituteInPlace $out/etc/udev/rules.d/56-hpmud.rules \
       --replace {,${bash}}/bin/sh \
-      --replace {/usr,${coreutils}}/bin/nohup \
+      --replace /usr/bin/nohup "" \
       --replace {,${utillinux}/bin/}logger \
       --replace {/usr,$out}/bin
   '';
diff --git a/pkgs/misc/drivers/hplip/default.nix b/pkgs/misc/drivers/hplip/default.nix
index eced20902c61..6c02fa52124e 100644
--- a/pkgs/misc/drivers/hplip/default.nix
+++ b/pkgs/misc/drivers/hplip/default.nix
@@ -215,7 +215,7 @@ pythonPackages.buildPythonApplication {
     # Needs a lot of patching but might save someone a bit of confusion:
     substituteInPlace $out/etc/udev/rules.d/56-hpmud.rules \
       --replace {,${bash}}/bin/sh \
-      --replace {/usr,${coreutils}}/bin/nohup \
+      --replace /usr/bin/nohup "" \
       --replace {,${utillinux}/bin/}logger \
       --replace {/usr,$out}/bin
   '';