2017-10-04 22:50:14 +01:00
|
|
|
{ stdenv, fetchurl
|
2018-02-25 02:23:58 +00:00
|
|
|
, meson, ninja, gettext, pkgconfig, wrapGAppsHook, itstool, desktop-file-utils
|
2018-12-02 11:41:15 +00:00
|
|
|
, vala, gobject-introspection, libxml2, gtk3, glib, gsound, sound-theme-freedesktop
|
2019-02-13 21:47:50 +00:00
|
|
|
, gsettings-desktop-schemas, adwaita-icon-theme, gnome-desktop, geocode-glib
|
2019-05-22 12:03:39 +01:00
|
|
|
, gnome3, gdk-pixbuf, geoclue2, libgweather }:
|
2016-09-18 20:35:23 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2018-02-25 20:07:20 +00:00
|
|
|
name = "gnome-clocks-${version}";
|
2019-03-10 14:44:57 +00:00
|
|
|
version = "3.32.0";
|
2018-02-25 20:07:20 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2018-10-05 01:12:11 +01:00
|
|
|
url = "mirror://gnome/sources/gnome-clocks/${stdenv.lib.versions.majorMinor version}/${name}.tar.xz";
|
2019-03-10 14:44:57 +00:00
|
|
|
sha256 = "1w6lgjdak3x76c9gyhd1lqrdmjfh8q77sjnrkcimylsg0jq913bc";
|
2018-02-25 20:07:20 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
passthru = {
|
2018-03-14 05:15:34 +00:00
|
|
|
updateScript = gnome3.updateScript {
|
|
|
|
packageName = "gnome-clocks";
|
|
|
|
attrPath = "gnome3.gnome-clocks";
|
|
|
|
};
|
2018-02-25 20:07:20 +00:00
|
|
|
};
|
2016-09-18 20:35:23 +01:00
|
|
|
|
|
|
|
doCheck = true;
|
|
|
|
|
2017-12-17 02:07:37 +00:00
|
|
|
nativeBuildInputs = [
|
2018-03-14 05:15:34 +00:00
|
|
|
vala meson ninja pkgconfig gettext itstool wrapGAppsHook desktop-file-utils libxml2
|
2018-12-02 11:41:15 +00:00
|
|
|
gobject-introspection # for finding vapi files
|
2017-12-17 02:07:37 +00:00
|
|
|
];
|
|
|
|
buildInputs = [
|
2019-05-22 12:03:39 +01:00
|
|
|
gtk3 glib gsettings-desktop-schemas gdk-pixbuf adwaita-icon-theme
|
2019-02-13 21:47:50 +00:00
|
|
|
gnome-desktop geocode-glib geoclue2 libgweather gsound
|
2017-12-17 02:07:37 +00:00
|
|
|
];
|
2016-09-18 20:35:23 +01:00
|
|
|
|
2018-05-09 02:12:24 +01:00
|
|
|
preFixup = ''
|
|
|
|
gappsWrapperArgs+=(
|
|
|
|
# Fallback sound theme
|
|
|
|
--prefix XDG_DATA_DIRS : "${sound-theme-freedesktop}/share"
|
|
|
|
)
|
|
|
|
'';
|
|
|
|
|
2016-09-18 20:35:23 +01:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = https://wiki.gnome.org/Apps/Clocks;
|
|
|
|
description = "Clock application designed for GNOME 3";
|
|
|
|
maintainers = gnome3.maintainers;
|
|
|
|
license = licenses.gpl2;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|