tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
ayatana-webmail: init at 22.12.15
Doron Behar
2 years ago
4f488c66
f127904a
+92
2 changed files
expand all
collapse all
unified
split
pkgs
applications
networking
mailreaders
ayatana-webmail
default.nix
top-level
all-packages.nix
+90
pkgs/applications/networking/mailreaders/ayatana-webmail/default.nix
···
1
1
+
{ lib
2
2
+
, fetchFromGitHub
3
3
+
, gettext
4
4
+
, gtk3
5
5
+
, python3Packages
6
6
+
, gdk-pixbuf
7
7
+
, libnotify
8
8
+
, glib
9
9
+
, gobject-introspection
10
10
+
, wrapGAppsHook
11
11
+
# BTW libappindicator is also supported, but upstream recommends their
12
12
+
# implementation, see:
13
13
+
# https://github.com/AyatanaIndicators/ayatana-webmail/issues/24#issuecomment-1050352862
14
14
+
, libayatana-appindicator
15
15
+
, gsettings-desktop-schemas
16
16
+
, libcanberra-gtk3
17
17
+
}:
18
18
+
19
19
+
python3Packages.buildPythonApplication rec {
20
20
+
pname = "ayatana-webmail";
21
21
+
version = "22.12.15";
22
22
+
23
23
+
src = fetchFromGitHub {
24
24
+
owner = "AyatanaIndicators";
25
25
+
repo = "ayatana-webmail";
26
26
+
rev = version;
27
27
+
hash = "sha256-K2jqCWrY1i1wYdZVpjN/3TcVyWariOQQ4slZf6sEPRU=";
28
28
+
};
29
29
+
postConfigure = ''
30
30
+
# Fix fhs paths
31
31
+
substituteInPlace \
32
32
+
ayatanawebmail/accounts.py \
33
33
+
ayatanawebmail/actions.py \
34
34
+
ayatanawebmail/dialog.py \
35
35
+
--replace /usr/share $out/share
36
36
+
'';
37
37
+
38
38
+
buildInputs = [
39
39
+
gtk3
40
40
+
gdk-pixbuf
41
41
+
glib
42
42
+
libnotify
43
43
+
gettext
44
44
+
libayatana-appindicator
45
45
+
gsettings-desktop-schemas
46
46
+
];
47
47
+
48
48
+
nativeBuildInputs = [
49
49
+
gobject-introspection
50
50
+
wrapGAppsHook
51
51
+
glib # For compiling gsettings-schemas
52
52
+
];
53
53
+
54
54
+
propagatedBuildInputs = with python3Packages; [
55
55
+
urllib3
56
56
+
babel
57
57
+
psutil
58
58
+
secretstorage
59
59
+
polib
60
60
+
pygobject3
61
61
+
dbus-python
62
62
+
];
63
63
+
64
64
+
# No tests, and they cause a failure
65
65
+
doCheck = false;
66
66
+
67
67
+
postInstall = ''
68
68
+
# Fix fhs paths
69
69
+
mv $out/${python3Packages.python.sitePackages}/etc $out
70
70
+
mv $out/${python3Packages.python.sitePackages}/usr/{bin,share} $out/
71
71
+
rmdir $out/${python3Packages.python.sitePackages}/usr
72
72
+
# Compile gsettings desktop schemas
73
73
+
glib-compile-schemas $out/share/glib-2.0/schemas
74
74
+
'';
75
75
+
76
76
+
# See https://nixos.org/nixpkgs/manual/#ssec-gnome-common-issues-double-wrapped
77
77
+
dontWrapGApps = true;
78
78
+
preFixup = ''
79
79
+
makeWrapperArgs+=("''${gappsWrapperArgs[@]}")
80
80
+
makeWrapperArgs+=(--prefix PATH : ${lib.makeBinPath [ libcanberra-gtk3 ]})
81
81
+
'';
82
82
+
83
83
+
meta = with lib; {
84
84
+
description = "Webmail notifications and actions for any desktop";
85
85
+
homepage = "https://github.com/AyatanaIndicators/ayatana-webmail";
86
86
+
license = licenses.gpl3Plus;
87
87
+
platforms = platforms.linux;
88
88
+
maintainers = with maintainers; [ doronbehar ];
89
89
+
};
90
90
+
}
+2
pkgs/top-level/all-packages.nix
···
19965
19965
19966
19966
ayatana-ido = callPackage ../development/libraries/ayatana-ido { };
19967
19967
19968
19968
+
ayatana-webmail = callPackage ../applications/networking/mailreaders/ayatana-webmail { };
19969
19969
+
19968
19970
babl = callPackage ../development/libraries/babl { };
19969
19971
19970
19972
backward-cpp = callPackage ../development/libraries/backward-cpp { };