Merge pull request #90609 from bkchr/bkchr-fix-hplip

hplip: Fix missing library

authored by Florian Klink and committed by GitHub 23c90919 27094eee

+10 -3
+10 -3
pkgs/misc/drivers/hplip/default.nix
··· 5 5 , net-snmp, openssl, perl, nettools 6 6 , bash, coreutils, utillinux 7 7 # To remove references to gcc-unwrapped 8 - , removeReferencesTo 8 + , removeReferencesTo, qt5 9 9 , withQt5 ? true 10 10 , withPlugin ? false 11 11 , withStaticPPDInstall ? false ··· 67 67 zlib 68 68 ]; 69 69 70 - nativeBuildInputs = [ pkgconfig removeReferencesTo ]; 70 + nativeBuildInputs = [ 71 + pkgconfig 72 + removeReferencesTo 73 + ] ++ stdenv.lib.optional withQt5 qt5.wrapQtAppsHook; 71 74 72 75 pythonPath = with python3Packages; [ 73 76 dbus 74 77 pillow 75 - pygobject2 78 + pygobject3 76 79 reportlab 77 80 usbutils 78 81 sip ··· 219 222 --replace {,${utillinux}/bin/}logger \ 220 223 --replace {/usr,$out}/bin 221 224 remove-references-to -t ${stdenv.cc.cc} $(readlink -f $out/lib/*.so) 225 + '' + stdenv.lib.optionalString withQt5 '' 226 + for f in $out/bin/hp-*;do 227 + wrapQtApp $f 228 + done 222 229 ''; 223 230 224 231 # There are some binaries there, which reference gcc-unwrapped otherwise.