2024-07-27 06:49:29 +00:00
|
|
|
{
|
|
|
|
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,
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
2024-07-27 06:49:29 +00:00
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "gnome-clocks";
|
2024-05-15 15:35:15 +00:00
|
|
|
version = "46.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2024-07-27 06:49:29 +00:00
|
|
|
url = "mirror://gnome/sources/gnome-clocks/${lib.versions.major finalAttrs.version}/gnome-clocks-${finalAttrs.version}.tar.xz";
|
2024-05-15 15:35:15 +00:00
|
|
|
hash = "sha256-6qPFeM3O+XVOZotWJnCbc/NSZxAjX0tyB20v9JpPmcc=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
2022-10-21 18:38:19 +00:00
|
|
|
vala
|
2020-04-24 23:36:52 +00:00
|
|
|
meson
|
|
|
|
ninja
|
2021-02-05 17:12:51 +00:00
|
|
|
pkg-config
|
2020-04-24 23:36:52 +00:00
|
|
|
gettext
|
|
|
|
itstool
|
2022-10-21 18:38:19 +00:00
|
|
|
wrapGAppsHook4
|
2020-04-24 23:36:52 +00:00
|
|
|
desktop-file-utils
|
|
|
|
libxml2
|
|
|
|
];
|
2020-05-29 06:06:01 +00:00
|
|
|
|
2024-07-27 06:49:29 +00:00
|
|
|
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
|
|
|
|
]);
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2020-05-29 06:06:01 +00:00
|
|
|
doCheck = true;
|
|
|
|
|
|
|
|
passthru = {
|
2024-09-19 14:19:46 +00:00
|
|
|
updateScript = gnome.updateScript { packageName = "gnome-clocks"; };
|
2020-05-29 06:06:01 +00:00
|
|
|
};
|
|
|
|
|
2024-07-27 06:49:29 +00:00
|
|
|
meta = {
|
2024-05-15 15:35:15 +00:00
|
|
|
homepage = "https://apps.gnome.org/Clocks/";
|
2024-07-27 06:49:29 +00:00
|
|
|
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
|
|
|
|
'';
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "gnome-clocks";
|
2024-07-27 06:49:29 +00:00
|
|
|
maintainers = lib.teams.gnome.members;
|
|
|
|
license = lib.licenses.gpl2Plus;
|
|
|
|
platforms = lib.platforms.unix;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
2024-07-27 06:49:29 +00:00
|
|
|
})
|