tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
networkd-notify: init at unstable-2022-11-29
Dan Callaghan
2 years ago
62d4e490
6844ea47
+53
2 changed files
expand all
collapse all
unified
split
pkgs
tools
networking
networkd-notify
default.nix
top-level
all-packages.nix
+49
pkgs/tools/networking/networkd-notify/default.nix
···
1
1
+
{ lib
2
2
+
, fetchFromGitLab
3
3
+
, buildPythonApplication
4
4
+
, dbus-python
5
5
+
, pygobject3
6
6
+
, systemd
7
7
+
, wirelesstools
8
8
+
}:
9
9
+
10
10
+
buildPythonApplication rec {
11
11
+
pname = "networkd-notify";
12
12
+
version = "unstable-2022-11-29";
13
13
+
# There is no setup.py, just a single Python script.
14
14
+
format = "other";
15
15
+
16
16
+
src = fetchFromGitLab {
17
17
+
owner = "wavexx";
18
18
+
repo = pname;
19
19
+
rev = "c2f3e71076a0f51c097064b1eb2505a361c7cc0e";
20
20
+
sha256 = "sha256-fanP1EWERT2Jy4OnMo8OMdR9flginYUgMw+XgmDve3o=";
21
21
+
};
22
22
+
23
23
+
propagatedBuildInputs = [
24
24
+
dbus-python
25
25
+
pygobject3
26
26
+
];
27
27
+
28
28
+
patchPhase = ''
29
29
+
sed -i \
30
30
+
-e '/^NETWORKCTL = /c\NETWORKCTL = ["${systemd}/bin/networkctl"]' \
31
31
+
-e '/^IWCONFIG = /c\IWCONFIG = ["${wirelesstools}/bin/iwconfig"]' \
32
32
+
networkd-notify
33
33
+
'';
34
34
+
35
35
+
dontBuild = true;
36
36
+
37
37
+
installPhase = ''
38
38
+
install -D networkd-notify -t "$out/bin/"
39
39
+
install -D -m0644 networkd-notify.desktop -t "$out/share/applications/"
40
40
+
'';
41
41
+
42
42
+
meta = with lib; {
43
43
+
description = "Desktop notification integration for systemd-networkd";
44
44
+
homepage = "https://gitlab.com/wavexx/networkd-notify";
45
45
+
maintainers = with maintainers; [ danc86 ];
46
46
+
license = licenses.gpl3;
47
47
+
platforms = platforms.linux;
48
48
+
};
49
49
+
}
+4
pkgs/top-level/all-packages.nix
···
1612
1612
1613
1613
mpy-utils = python3Packages.callPackage ../tools/misc/mpy-utils { };
1614
1614
1615
1615
+
networkd-notify = python3Packages.callPackage ../tools/networking/networkd-notify {
1616
1616
+
systemd = pkgs.systemd;
1617
1617
+
};
1618
1618
+
1615
1619
nominatim = callPackage ../servers/nominatim { };
1616
1620
1617
1621
ocs-url = libsForQt5.callPackage ../tools/misc/ocs-url { };