2017-10-04 23:50:14 +02:00
|
|
|
{ stdenv, fetchurl
|
2018-02-25 03:23:58 +01:00
|
|
|
, meson, ninja, gettext, pkgconfig, wrapGAppsHook, itstool, desktop-file-utils
|
2018-12-02 12:41:15 +01:00
|
|
|
, vala, gobject-introspection, libxml2, gtk3, glib, gsound, sound-theme-freedesktop
|
2017-10-04 23:50:14 +02:00
|
|
|
, gnome3, gdk_pixbuf, geoclue2, libgweather }:
|
2016-09-18 21:35:23 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2018-02-25 21:07:20 +01:00
|
|
|
name = "gnome-clocks-${version}";
|
2018-09-05 02:45:53 +02:00
|
|
|
version = "3.30.1";
|
2018-02-25 21:07:20 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2018-10-05 02:12:11 +02:00
|
|
|
url = "mirror://gnome/sources/gnome-clocks/${stdenv.lib.versions.majorMinor version}/${name}.tar.xz";
|
2018-09-05 02:45:53 +02:00
|
|
|
sha256 = "009fr6zwv37wryi0c0syi4i7pxpdbn3gliws68l99cjsbn2qd6pc";
|
2018-02-25 21:07:20 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
passthru = {
|
2018-03-14 06:15:34 +01:00
|
|
|
updateScript = gnome3.updateScript {
|
|
|
|
packageName = "gnome-clocks";
|
|
|
|
attrPath = "gnome3.gnome-clocks";
|
|
|
|
};
|
2018-02-25 21:07:20 +01:00
|
|
|
};
|
2016-09-18 21:35:23 +02:00
|
|
|
|
|
|
|
doCheck = true;
|
|
|
|
|
2017-12-17 03:07:37 +01:00
|
|
|
nativeBuildInputs = [
|
2018-03-14 06:15:34 +01:00
|
|
|
vala meson ninja pkgconfig gettext itstool wrapGAppsHook desktop-file-utils libxml2
|
2018-12-02 12:41:15 +01:00
|
|
|
gobject-introspection # for finding vapi files
|
2017-12-17 03:07:37 +01:00
|
|
|
];
|
|
|
|
buildInputs = [
|
2018-02-25 03:23:58 +01:00
|
|
|
gtk3 glib gnome3.gsettings-desktop-schemas gdk_pixbuf gnome3.defaultIconTheme
|
|
|
|
gnome3.gnome-desktop gnome3.geocode-glib geoclue2 libgweather gsound
|
2017-12-17 03:07:37 +01:00
|
|
|
];
|
2016-09-18 21:35:23 +02:00
|
|
|
|
2018-05-09 03:12:24 +02:00
|
|
|
preFixup = ''
|
|
|
|
gappsWrapperArgs+=(
|
|
|
|
# Fallback sound theme
|
|
|
|
--prefix XDG_DATA_DIRS : "${sound-theme-freedesktop}/share"
|
|
|
|
)
|
|
|
|
'';
|
|
|
|
|
2016-09-18 21:35:23 +02: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;
|
|
|
|
};
|
|
|
|
}
|