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

88 lines
1.5 KiB
Nix
Raw Normal View History

{ lib, stdenv
, fetchurl
, meson
, ninja
, gettext
2021-01-16 18:21:50 -08:00
, pkg-config
, 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
, gnome
, gdk-pixbuf
, geoclue2
, libgweather
, libhandy
}:
stdenv.mkDerivation rec {
pname = "gnome-clocks";
2021-03-20 23:46:17 -07:00
version = "40.0";
src = fetchurl {
2021-03-20 23:46:17 -07:00
url = "mirror://gnome/sources/gnome-clocks/${lib.versions.major version}/${pname}-${version}.tar.xz";
sha256 = "02d3jg46sn8d9gd4dsaly22gg5vkbz2gpq4pmwpvncb4rsqk7sn2";
};
2017-12-16 18:07:37 -08:00
nativeBuildInputs = [
vala
meson
ninja
2021-01-16 18:21:50 -08:00
pkg-config
gettext
itstool
wrapGAppsHook
desktop-file-utils
libxml2
gobject-introspection # for finding vapi files
2017-12-16 18:07:37 -08:00
];
2017-12-16 18:07:37 -08:00
buildInputs = [
gtk3
glib
gsettings-desktop-schemas
gdk-pixbuf
adwaita-icon-theme
gnome-desktop
geocode-glib
geoclue2
libgweather
gsound
libhandy
2017-12-16 18:07:37 -08:00
];
preFixup = ''
gappsWrapperArgs+=(
# Fallback sound theme
--prefix XDG_DATA_DIRS : "${sound-theme-freedesktop}/share"
)
'';
doCheck = true;
passthru = {
updateScript = gnome.updateScript {
packageName = "gnome-clocks";
attrPath = "gnome.gnome-clocks";
};
};
meta = with 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;
};
}