depot/third_party/nixpkgs/pkgs/by-name/gn/gnome-clocks/package.nix
Default email 159e378cbb Project import generated by Copybara.
GitOrigin-RevId: c04d5652cfa9742b1d519688f65d1bbccea9eb7e
2024-09-19 17:19:46 +03:00

90 lines
1.8 KiB
Nix

{
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"; };
};
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;
};
})