nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 fetchFromGitLab,
4 gettext,
5 gtk3,
6 python3Packages,
7 gdk-pixbuf,
8 libnotify,
9 gst_all_1,
10 libsecret,
11 wrapGAppsHook3,
12 gsettings-desktop-schemas,
13 gnome-online-accounts,
14 glib,
15 gobject-introspection,
16 folks,
17 bash,
18}:
19
20python3Packages.buildPythonApplication rec {
21 pname = "bubblemail";
22 version = "1.9";
23 pyproject = true;
24
25 src = fetchFromGitLab {
26 domain = "framagit.org";
27 owner = "razer";
28 repo = "bubblemail";
29 rev = "v${version}";
30 sha256 = "sha256-eXEFBLo7CbLRlnI2nr7qWAdLUKe6PLQJ78Ho8MP9ShY=";
31 };
32
33 buildInputs = [
34 gtk3
35 gdk-pixbuf
36 glib
37 libnotify
38 gst_all_1.gstreamer
39 gst_all_1.gst-plugins-base
40 gst_all_1.gst-plugins-good
41 gst_all_1.gst-plugins-bad
42 libsecret
43 gnome-online-accounts
44 folks
45 bash
46 ];
47
48 nativeBuildInputs = [
49 gettext
50 wrapGAppsHook3
51 python3Packages.pillow
52 # For setup-hook
53 gobject-introspection
54 ];
55
56 build-system = with python3Packages; [
57 setuptools
58 ];
59
60 propagatedBuildInputs = with python3Packages; [
61 gsettings-desktop-schemas
62 pygobject3
63 dbus-python
64 pyxdg
65 ];
66
67 # See https://nixos.org/nixpkgs/manual/#ssec-gnome-common-issues-double-wrapped
68 dontWrapGApps = true;
69
70 preFixup = ''
71 makeWrapperArgs+=("''${gappsWrapperArgs[@]}")
72 '';
73
74 meta = {
75 description = "Extensible mail notification service";
76 homepage = "http://bubblemail.free.fr/";
77 license = lib.licenses.gpl2Plus;
78 platforms = lib.platforms.linux;
79 maintainers = with lib.maintainers; [ doronbehar ];
80 };
81}