From 607be851e4ad39f724ac182053513c7ba3169d70 Mon Sep 17 00:00:00 2001 From: Artturin Date: Wed, 30 Jun 2021 23:16:37 +0300 Subject: [PATCH] hplip: hardcode ppdc path to fix #44230 the ppdc: Warning - overlapping filename can be ignored https://bugs.launchpad.net/hplip/+bug/1756967 (cherry picked from commit 46c7445c34fbd71118b217593b906e3e9df3caa2) --- pkgs/misc/drivers/hplip/default.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkgs/misc/drivers/hplip/default.nix b/pkgs/misc/drivers/hplip/default.nix index 98a67a75f0b..0decad90ae3 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 \