2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv
|
2020-11-12 09:05:59 +00:00
|
|
|
, fetchurl
|
|
|
|
, meson
|
|
|
|
, ninja
|
2021-02-05 17:12:51 +00:00
|
|
|
, pkg-config
|
2020-11-12 09:05:59 +00:00
|
|
|
, wrapGAppsHook
|
|
|
|
, libdazzle
|
|
|
|
, libgweather
|
|
|
|
, geoclue2
|
|
|
|
, geocode-glib
|
|
|
|
, python3
|
|
|
|
, gettext
|
|
|
|
, libxml2
|
2021-05-20 23:08:51 +00:00
|
|
|
, gnome
|
2020-11-12 09:05:59 +00:00
|
|
|
, gtk3
|
|
|
|
, evolution-data-server
|
|
|
|
, libsoup
|
|
|
|
, glib
|
|
|
|
, gnome-online-accounts
|
|
|
|
, gsettings-desktop-schemas
|
|
|
|
, libhandy
|
|
|
|
, adwaita-icon-theme
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2020-11-12 09:05:59 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "gnome-calendar";
|
2021-12-06 16:07:01 +00:00
|
|
|
version = "41.1";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2021-05-20 23:08:51 +00:00
|
|
|
url = "mirror://gnome/sources/${pname}/${lib.versions.major version}/${pname}-${version}.tar.xz";
|
2021-12-06 16:07:01 +00:00
|
|
|
sha256 = "m1EmsjPhuPic9MIyYIlXHYKakwPsieplz2IWTmp0IuE=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2020-11-12 09:05:59 +00:00
|
|
|
patches = [
|
2021-01-09 10:05:03 +00:00
|
|
|
# https://gitlab.gnome.org/GNOME/gnome-calendar/-/merge_requests/84
|
2021-05-20 23:08:51 +00:00
|
|
|
# A refactor has caused the PR patch to drift enough to need rebasing
|
|
|
|
./gtk_image_reset_crash.patch
|
2020-11-12 09:05:59 +00:00
|
|
|
];
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
passthru = {
|
2021-05-20 23:08:51 +00:00
|
|
|
updateScript = gnome.updateScript {
|
2020-04-24 23:36:52 +00:00
|
|
|
packageName = pname;
|
2021-05-20 23:08:51 +00:00
|
|
|
attrPath = "gnome.${pname}";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2020-11-12 09:05:59 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
meson
|
|
|
|
ninja
|
2021-02-05 17:12:51 +00:00
|
|
|
pkg-config
|
2020-11-12 09:05:59 +00:00
|
|
|
gettext
|
|
|
|
libxml2
|
|
|
|
wrapGAppsHook
|
|
|
|
python3
|
|
|
|
];
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
buildInputs = [
|
2020-11-12 09:05:59 +00:00
|
|
|
gtk3
|
|
|
|
evolution-data-server
|
|
|
|
libsoup
|
|
|
|
glib
|
|
|
|
gnome-online-accounts
|
|
|
|
libdazzle
|
|
|
|
libgweather
|
|
|
|
geoclue2
|
|
|
|
geocode-glib
|
|
|
|
gsettings-desktop-schemas
|
|
|
|
adwaita-icon-theme
|
|
|
|
libhandy
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
chmod +x build-aux/meson/meson_post_install.py # patchShebangs requires executable file
|
|
|
|
patchShebangs build-aux/meson/meson_post_install.py
|
|
|
|
'';
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://wiki.gnome.org/Apps/Calendar";
|
|
|
|
description = "Simple and beautiful calendar application for GNOME";
|
|
|
|
maintainers = teams.gnome.members;
|
|
|
|
license = licenses.gpl3;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|