From 889e27104dc208a23441fbf8fb261c37c44d5cd8 Mon Sep 17 00:00:00 2001 From: Dan Callaghan Date: Mon, 15 Jul 2024 21:30:00 +1000 Subject: [PATCH] networkd-notify: fix gobject-introspection typelib lookup (#327285) Co-authored-by: Sandro --- pkgs/tools/networking/networkd-notify/default.nix | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/pkgs/tools/networking/networkd-notify/default.nix b/pkgs/tools/networking/networkd-notify/default.nix index 120bb8111f02..6671983e1e7d 100644 --- a/pkgs/tools/networking/networkd-notify/default.nix +++ b/pkgs/tools/networking/networkd-notify/default.nix @@ -5,6 +5,7 @@ , pygobject3 , systemd , wirelesstools +, wrapGAppsNoGuiHook }: buildPythonApplication rec { @@ -20,6 +21,10 @@ buildPythonApplication rec { hash = "sha256-fanP1EWERT2Jy4OnMo8OMdR9flginYUgMw+XgmDve3o="; }; + nativeBuildInputs = [ + wrapGAppsNoGuiHook + ]; + propagatedBuildInputs = [ dbus-python pygobject3 @@ -39,6 +44,13 @@ buildPythonApplication rec { install -D -m0644 networkd-notify.desktop -t "$out/share/applications/" ''; + # Let the Python wrapper add gappsWrapperArgs, to avoid two layers of wrapping. + dontWrapGApps = true; + + preFixup = '' + makeWrapperArgs+=("''${gappsWrapperArgs[@]}") + ''; + meta = with lib; { description = "Desktop notification integration for systemd-networkd"; mainProgram = "networkd-notify";