Unverified Commit 889e2710 authored by Dan Callaghan's avatar Dan Callaghan Committed by GitHub
Browse files

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



Co-authored-by: default avatarSandro <sandro.jaeckel@gmail.com>
parent 9edeea06
Loading
Loading
Loading
Loading
+12 −0
Original line number Diff line number Diff line
@@ -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";