networkd-notify: fix gobject-introspection typelib lookup (#327285)
Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
This commit is contained in:
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user