networkd-notify: fix gobject-introspection typelib lookup (#327285)

Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
This commit is contained in:
Dan Callaghan
2024-07-15 13:30:00 +02:00
committed by GitHub
co-authored by Sandro
parent 9edeea0611
commit 889e27104d
@@ -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";