nixpkgs/pkgs/desktops/gnome-3/apps/gnome-clocks/default.nix

49 lines
1.4 KiB
Nix
Raw Normal View History

2017-10-04 14:50:14 -07:00
{ stdenv, fetchurl
, meson, ninja, gettext, pkgconfig, wrapGAppsHook, itstool, desktop-file-utils
, vala, gobject-introspection, libxml2, gtk3, glib, gsound, sound-theme-freedesktop
2019-02-13 13:47:50 -08:00
, gsettings-desktop-schemas, adwaita-icon-theme, gnome-desktop, geocode-glib
2019-05-22 04:03:39 -07:00
, gnome3, gdk-pixbuf, geoclue2, libgweather }:
stdenv.mkDerivation rec {
pname = "gnome-clocks";
2019-09-02 09:44:40 -07:00
version = "3.34.0";
src = fetchurl {
url = "mirror://gnome/sources/gnome-clocks/${stdenv.lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
2019-09-02 09:44:40 -07:00
sha256 = "0g7hjk55smhkd09hwa9kag3h5a12l494wj89w9smpdk3ghsmy6b1";
};
passthru = {
2018-03-13 22:15:34 -07:00
updateScript = gnome3.updateScript {
packageName = "gnome-clocks";
attrPath = "gnome3.gnome-clocks";
};
};
doCheck = true;
2017-12-16 18:07:37 -08:00
nativeBuildInputs = [
2018-03-13 22:15:34 -07:00
vala meson ninja pkgconfig gettext itstool wrapGAppsHook desktop-file-utils libxml2
gobject-introspection # for finding vapi files
2017-12-16 18:07:37 -08:00
];
buildInputs = [
2019-05-22 04:03:39 -07:00
gtk3 glib gsettings-desktop-schemas gdk-pixbuf adwaita-icon-theme
2019-02-13 13:47:50 -08:00
gnome-desktop geocode-glib geoclue2 libgweather gsound
2017-12-16 18:07:37 -08:00
];
preFixup = ''
gappsWrapperArgs+=(
# Fallback sound theme
--prefix XDG_DATA_DIRS : "${sound-theme-freedesktop}/share"
)
'';
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;
};
}