2020-04-24 23:36:52 +00:00
|
|
|
{ stdenv
|
|
|
|
, fetchurl
|
|
|
|
, meson
|
|
|
|
, ninja
|
|
|
|
, gettext
|
|
|
|
, pkgconfig
|
|
|
|
, wrapGAppsHook
|
|
|
|
, itstool
|
|
|
|
, desktop-file-utils
|
|
|
|
, vala
|
|
|
|
, gobject-introspection
|
|
|
|
, libxml2
|
|
|
|
, gtk3
|
|
|
|
, glib
|
|
|
|
, gsound
|
|
|
|
, sound-theme-freedesktop
|
|
|
|
, gsettings-desktop-schemas
|
|
|
|
, adwaita-icon-theme
|
|
|
|
, gnome-desktop
|
|
|
|
, geocode-glib
|
|
|
|
, gnome3
|
|
|
|
, gdk-pixbuf
|
|
|
|
, geoclue2
|
|
|
|
, libgweather
|
|
|
|
, libhandy
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "gnome-clocks";
|
2020-05-29 06:06:01 +00:00
|
|
|
version = "3.36.2";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://gnome/sources/gnome-clocks/${stdenv.lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
|
2020-05-29 06:06:01 +00:00
|
|
|
sha256 = "8RsbIuwfKF5QmINoTAsfSlFJauoQVZEjnlsm+JhnUeY=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
vala
|
|
|
|
meson
|
|
|
|
ninja
|
|
|
|
pkgconfig
|
|
|
|
gettext
|
|
|
|
itstool
|
|
|
|
wrapGAppsHook
|
|
|
|
desktop-file-utils
|
|
|
|
libxml2
|
|
|
|
gobject-introspection # for finding vapi files
|
|
|
|
];
|
2020-05-29 06:06:01 +00:00
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
buildInputs = [
|
|
|
|
gtk3
|
|
|
|
glib
|
|
|
|
gsettings-desktop-schemas
|
|
|
|
gdk-pixbuf
|
|
|
|
adwaita-icon-theme
|
|
|
|
gnome-desktop
|
|
|
|
geocode-glib
|
|
|
|
geoclue2
|
|
|
|
libgweather
|
|
|
|
gsound
|
|
|
|
libhandy
|
|
|
|
];
|
|
|
|
|
|
|
|
preFixup = ''
|
|
|
|
gappsWrapperArgs+=(
|
|
|
|
# Fallback sound theme
|
|
|
|
--prefix XDG_DATA_DIRS : "${sound-theme-freedesktop}/share"
|
|
|
|
)
|
|
|
|
'';
|
|
|
|
|
2020-05-29 06:06:01 +00:00
|
|
|
doCheck = true;
|
|
|
|
|
|
|
|
passthru = {
|
|
|
|
updateScript = gnome3.updateScript {
|
|
|
|
packageName = "gnome-clocks";
|
|
|
|
attrPath = "gnome3.gnome-clocks";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = "https://wiki.gnome.org/Apps/Clocks";
|
|
|
|
description = "Clock application designed for GNOME 3";
|
|
|
|
maintainers = teams.gnome.members;
|
|
|
|
license = licenses.gpl2;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|