about summary refs log tree commit diff
path: root/pkgs/misc/drivers
diff options
context:
space:
mode:
authorArtturin <Artturin@artturin.com>2021-06-30 23:16:37 +0300
committerArtturin <Artturin@artturin.com>2021-07-01 03:38:15 +0300
commit46c7445c34fbd71118b217593b906e3e9df3caa2 (patch)
treee035d356515978fec66a28c0db9918de365ba73f /pkgs/misc/drivers
parent5ef8322daa6007ef0256460c0de339f70d718e50 (diff)
hplip: hardcode ppdc path to fix #44230
the ppdc: Warning - overlapping filename can be ignored
https://bugs.launchpad.net/hplip/+bug/1756967
Diffstat (limited to 'pkgs/misc/drivers')
-rw-r--r--pkgs/misc/drivers/hplip/default.nix4
1 files changed, 4 insertions, 0 deletions
diff --git a/pkgs/misc/drivers/hplip/default.nix b/pkgs/misc/drivers/hplip/default.nix
index 98a67a75f0bc4..0decad90ae3cc 100644
--- a/pkgs/misc/drivers/hplip/default.nix
+++ b/pkgs/misc/drivers/hplip/default.nix
@@ -102,6 +102,10 @@ python3Packages.buildPythonApplication {
   ];
 
   prePatch = ''
+    # https://github.com/NixOS/nixpkgs/issues/44230
+    substituteInPlace createPPD.sh \
+    --replace ppdc "${cups}/bin/ppdc"
+
     # HPLIP hardcodes absolute paths everywhere. Nuke from orbit.
     find . -type f -exec sed -i \
       -e s,/etc/hp,$out/etc/hp,g \