1{
2 lib,
3 stdenv,
4 fetchFromGitHub,
5 nix-update-script,
6 meson,
7 ninja,
8 pkg-config,
9 vala,
10 gtk3,
11 glib,
12 granite,
13 libgee,
14 libhandy,
15 libcanberra-gtk3,
16 wrapGAppsHook3,
17}:
18
19stdenv.mkDerivation rec {
20 pname = "elementary-notifications";
21 version = "8.1.0";
22
23 src = fetchFromGitHub {
24 owner = "elementary";
25 repo = "notifications";
26 rev = version;
27 sha256 = "sha256-2+LV3O2V42gI+ysVoeO9KpLqmAj/Zk5F8LzO2RNZ1ZY=";
28 };
29
30 nativeBuildInputs = [
31 glib # for glib-compile-schemas
32 meson
33 ninja
34 pkg-config
35 vala
36 wrapGAppsHook3
37 ];
38
39 buildInputs = [
40 glib
41 granite
42 gtk3
43 libcanberra-gtk3
44 libgee
45 libhandy
46 ];
47
48 passthru = {
49 updateScript = nix-update-script { };
50 };
51
52 meta = with lib; {
53 description = "GTK notification server for Pantheon";
54 homepage = "https://github.com/elementary/notifications";
55 license = licenses.gpl3Plus;
56 teams = [ teams.pantheon ];
57 platforms = platforms.linux;
58 mainProgram = "io.elementary.notifications";
59 };
60}