1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
|
{
stdenv,
lib,
fetchurl,
meson,
ninja,
gettext,
pkg-config,
wrapGAppsHook4,
itstool,
desktop-file-utils,
vala,
libxml2,
gtk4,
glib,
gsettings-desktop-schemas,
gnome-desktop,
geocode-glib_2,
gnome,
gdk-pixbuf,
geoclue2,
gst_all_1,
libgweather,
libadwaita,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "gnome-clocks";
version = "46.0";
src = fetchurl {
url = "mirror://gnome/sources/gnome-clocks/${lib.versions.major finalAttrs.version}/gnome-clocks-${finalAttrs.version}.tar.xz";
hash = "sha256-6qPFeM3O+XVOZotWJnCbc/NSZxAjX0tyB20v9JpPmcc=";
};
nativeBuildInputs = [
vala
meson
ninja
pkg-config
gettext
itstool
wrapGAppsHook4
desktop-file-utils
libxml2
];
buildInputs =
[
gtk4
glib
gsettings-desktop-schemas
gdk-pixbuf
gnome-desktop
geocode-glib_2
geoclue2
libgweather
libadwaita
]
++ (with gst_all_1; [
# GStreamer plugins needed for Alarms
gstreamer
gst-plugins-base
gst-plugins-good
]);
doCheck = true;
passthru = {
updateScript = gnome.updateScript {
packageName = "gnome-clocks";
attrPath = "gnome.gnome-clocks";
};
};
meta = {
homepage = "https://apps.gnome.org/Clocks/";
description = "A simple and elegant clock application for GNOME";
longDescription = ''
A simple and elegant clock application. It includes world clocks, alarms,
a stopwatch, and timers.
- Show the time in different cities around the world
- Set alarms to wake you up
- Measure elapsed time with an accurate stopwatch
- Set timers to properly cook your food
'';
mainProgram = "gnome-clocks";
maintainers = lib.teams.gnome.members;
license = lib.licenses.gpl2Plus;
platforms = lib.platforms.unix;
};
})
|