c294beafb3
https://gitlab.gnome.org/GNOME/gnome-clocks/-/compare/44.0...45.0 No longer needs GSound3aed85a475
Uses portal for clock format setting through D-Bus interface:01eb5f03d8
Changelog-reviewed-by: Bobby Rong <rjl931189261@126.com> Changelog-reviewed-by: Jan Tojnar <jtojnar@gmail.com>
84 lines
1.5 KiB
Nix
84 lines
1.5 KiB
Nix
{ stdenv
|
|
, lib
|
|
, fetchurl
|
|
, meson
|
|
, ninja
|
|
, gettext
|
|
, pkg-config
|
|
, wrapGAppsHook4
|
|
, itstool
|
|
, desktop-file-utils
|
|
, vala
|
|
, gobject-introspection
|
|
, libxml2
|
|
, gtk4
|
|
, glib
|
|
, sound-theme-freedesktop
|
|
, gsettings-desktop-schemas
|
|
, gnome-desktop
|
|
, geocode-glib_2
|
|
, gnome
|
|
, gdk-pixbuf
|
|
, geoclue2
|
|
, libgweather
|
|
, libadwaita
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "gnome-clocks";
|
|
version = "45.0";
|
|
|
|
src = fetchurl {
|
|
url = "mirror://gnome/sources/gnome-clocks/${lib.versions.major version}/${pname}-${version}.tar.xz";
|
|
sha256 = "/I60/ZUw8eZB3ADuIIbufTVKegCwoNFyLjBdXJqrkbU=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
vala
|
|
meson
|
|
ninja
|
|
pkg-config
|
|
gettext
|
|
itstool
|
|
wrapGAppsHook4
|
|
desktop-file-utils
|
|
libxml2
|
|
gobject-introspection # for finding vapi files
|
|
];
|
|
|
|
buildInputs = [
|
|
gtk4
|
|
glib
|
|
gsettings-desktop-schemas
|
|
gdk-pixbuf
|
|
gnome-desktop
|
|
geocode-glib_2
|
|
geoclue2
|
|
libgweather
|
|
libadwaita
|
|
];
|
|
|
|
preFixup = ''
|
|
gappsWrapperArgs+=(
|
|
# Fallback sound theme
|
|
--prefix XDG_DATA_DIRS : "${sound-theme-freedesktop}/share"
|
|
)
|
|
'';
|
|
|
|
doCheck = true;
|
|
|
|
passthru = {
|
|
updateScript = gnome.updateScript {
|
|
packageName = "gnome-clocks";
|
|
attrPath = "gnome.gnome-clocks";
|
|
};
|
|
};
|
|
|
|
meta = with lib; {
|
|
homepage = "https://wiki.gnome.org/Apps/Clocks";
|
|
description = "Clock application designed for GNOME 3";
|
|
maintainers = teams.gnome.members;
|
|
license = licenses.gpl2Plus;
|
|
platforms = platforms.unix;
|
|
};
|
|
}
|