From ac20a96efdbdb9f9dd9d8a09292e1f4910687d40 Mon Sep 17 00:00:00 2001 From: Alois Wohlschlager Date: Sun, 7 Jul 2024 06:45:54 +0200 Subject: [PATCH] hplip: fix dependencies Wrapping with gobject-introspection is required so that hp-systray is able to find dbus. Sip4 is outdated and seems no longer required. --- pkgs/misc/drivers/hplip/default.nix | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/pkgs/misc/drivers/hplip/default.nix b/pkgs/misc/drivers/hplip/default.nix index 7da63bcd5eb4..ad7c439412dd 100644 --- a/pkgs/misc/drivers/hplip/default.nix +++ b/pkgs/misc/drivers/hplip/default.nix @@ -1,5 +1,5 @@ { lib, stdenv, fetchurl, substituteAll -, pkg-config, autoreconfHook +, pkg-config, autoreconfHook, gobject-introspection, wrapGAppsHook3 , cups, zlib, libjpeg, libusb1, python311Packages, sane-backends , dbus, file, ghostscript, usbutils , net-snmp, openssl, perl, nettools, avahi @@ -74,6 +74,8 @@ python311Packages.buildPythonApplication { pkg-config removeReferencesTo autoreconfHook + gobject-introspection + wrapGAppsHook3 ] ++ lib.optional withQt5 qt5.wrapQtAppsHook; pythonPath = with python311Packages; [ @@ -82,7 +84,6 @@ python311Packages.buildPythonApplication { pygobject3 reportlab usbutils - sip4 dbus-python distro ] ++ lib.optionals withQt5 [ @@ -239,7 +240,8 @@ python311Packages.buildPythonApplication { # 1. Calling patchPythonProgram on the original script in $out/share/hplip # 2. Making our own wrapper pointing directly to the original script. dontWrapPythonPrograms = true; - # We also avoid double wrapping in case we add qt5 support + # We also avoid double (or triple in case qt5 support is added) wrapping + dontWrapGApps = true; dontWrapQtApps = true; preFixup = '' buildPythonPath "$out $pythonPath" @@ -253,7 +255,7 @@ python311Packages.buildPythonApplication { ${if withQt5 then "makeQtWrapper" else "makeWrapper"} "$py" "$bin" \ --prefix PATH ':' "$program_PATH" \ --set PYTHONNOUSERSITE "true" \ - $makeWrapperArgs + $makeWrapperArgs "''${gappsWrapperArgs[@]}" done '';