2022-03-30 09:31:56 +00:00
|
|
|
{ stdenv
|
|
|
|
, lib
|
2020-04-24 23:36:52 +00:00
|
|
|
, fetchurl
|
|
|
|
, meson
|
|
|
|
, ninja
|
|
|
|
, gettext
|
2021-02-05 17:12:51 +00:00
|
|
|
, pkg-config
|
2022-10-21 18:38:19 +00:00
|
|
|
, wrapGAppsHook4
|
2020-04-24 23:36:52 +00:00
|
|
|
, itstool
|
|
|
|
, desktop-file-utils
|
2022-10-21 18:38:19 +00:00
|
|
|
, vala
|
2020-04-24 23:36:52 +00:00
|
|
|
, gobject-introspection
|
|
|
|
, libxml2
|
2022-03-30 09:31:56 +00:00
|
|
|
, gtk4
|
2020-04-24 23:36:52 +00:00
|
|
|
, glib
|
|
|
|
, gsound
|
|
|
|
, sound-theme-freedesktop
|
|
|
|
, gsettings-desktop-schemas
|
|
|
|
, gnome-desktop
|
2022-10-21 18:38:19 +00:00
|
|
|
, geocode-glib_2
|
2021-05-20 23:08:51 +00:00
|
|
|
, gnome
|
2020-04-24 23:36:52 +00:00
|
|
|
, gdk-pixbuf
|
|
|
|
, geoclue2
|
|
|
|
, libgweather
|
2022-03-30 09:31:56 +00:00
|
|
|
, libadwaita
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "gnome-clocks";
|
2023-04-12 12:48:02 +00:00
|
|
|
version = "44.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2021-05-20 23:08:51 +00:00
|
|
|
url = "mirror://gnome/sources/gnome-clocks/${lib.versions.major version}/${pname}-${version}.tar.xz";
|
2023-04-12 12:48:02 +00:00
|
|
|
sha256 = "F9epc2XLjxoCOh1491AfM1Mhf6dXfXOv59DKHjtPODg=";
|
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
|
|
|
|
gobject-introspection # for finding vapi files
|
2022-09-30 11:47:45 +00:00
|
|
|
# error: Package `...' not found in specified Vala API directories or GObject-Introspection GIR directories
|
|
|
|
# TODO: the vala setuphook should look for vala filess in targetOffset instead of hostOffset
|
|
|
|
gsound
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
2020-05-29 06:06:01 +00:00
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
buildInputs = [
|
2022-03-30 09:31:56 +00:00
|
|
|
gtk4
|
2020-04-24 23:36:52 +00:00
|
|
|
glib
|
|
|
|
gsettings-desktop-schemas
|
|
|
|
gdk-pixbuf
|
|
|
|
gnome-desktop
|
2022-10-21 18:38:19 +00:00
|
|
|
geocode-glib_2
|
2020-04-24 23:36:52 +00:00
|
|
|
geoclue2
|
|
|
|
libgweather
|
|
|
|
gsound
|
2022-03-30 09:31:56 +00:00
|
|
|
libadwaita
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
preFixup = ''
|
|
|
|
gappsWrapperArgs+=(
|
|
|
|
# Fallback sound theme
|
|
|
|
--prefix XDG_DATA_DIRS : "${sound-theme-freedesktop}/share"
|
|
|
|
)
|
|
|
|
'';
|
|
|
|
|
2020-05-29 06:06:01 +00:00
|
|
|
doCheck = true;
|
|
|
|
|
|
|
|
passthru = {
|
2021-05-20 23:08:51 +00:00
|
|
|
updateScript = gnome.updateScript {
|
2020-05-29 06:06:01 +00:00
|
|
|
packageName = "gnome-clocks";
|
2021-05-20 23:08:51 +00:00
|
|
|
attrPath = "gnome.gnome-clocks";
|
2020-05-29 06:06:01 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://wiki.gnome.org/Apps/Clocks";
|
|
|
|
description = "Clock application designed for GNOME 3";
|
|
|
|
maintainers = teams.gnome.members;
|
2022-03-30 09:31:56 +00:00
|
|
|
license = licenses.gpl2Plus;
|
2022-12-02 08:20:57 +00:00
|
|
|
platforms = platforms.unix;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|