3 , buildPythonApplication
11 buildPythonApplication rec {
12 pname = "networkd-notify";
13 version = "unstable-2022-11-29";
14 # There is no setup.py, just a single Python script.
17 src = fetchFromGitLab {
20 rev = "c2f3e71076a0f51c097064b1eb2505a361c7cc0e";
21 hash = "sha256-fanP1EWERT2Jy4OnMo8OMdR9flginYUgMw+XgmDve3o=";
28 propagatedBuildInputs = [
35 -e '/^NETWORKCTL = /c\NETWORKCTL = ["${systemd}/bin/networkctl"]' \
36 -e '/^IWCONFIG = /c\IWCONFIG = ["${wirelesstools}/bin/iwconfig"]' \
43 install -D networkd-notify -t "$out/bin/"
44 install -D -m0644 networkd-notify.desktop -t "$out/share/applications/"
47 # Let the Python wrapper add gappsWrapperArgs, to avoid two layers of wrapping.
51 makeWrapperArgs+=("''${gappsWrapperArgs[@]}")
55 description = "Desktop notification integration for systemd-networkd";
56 mainProgram = "networkd-notify";
57 homepage = "https://gitlab.com/wavexx/networkd-notify";
58 maintainers = with maintainers; [ danc86 ];
59 license = licenses.gpl3;
60 platforms = platforms.linux;