78 lines
1.4 KiB
Nix
78 lines
1.4 KiB
Nix
{ stdenv
|
|
, fetchFromGitHub
|
|
, fetchpatch
|
|
, pantheon
|
|
, pkgconfig
|
|
, meson
|
|
, python3
|
|
, ninja
|
|
, vala
|
|
, gtk3
|
|
, granite
|
|
, wingpanel
|
|
, evolution-data-server
|
|
, libical
|
|
, libgee
|
|
, libxml2
|
|
, libsoup
|
|
, elementary-calendar
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "wingpanel-indicator-datetime";
|
|
version = "2.2.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "elementary";
|
|
repo = pname;
|
|
rev = version;
|
|
sha256 = "0y8lfrrkzcj8nw94jqawbxr4jz41ac0z539kkr3n3x0qmx72md2y";
|
|
};
|
|
|
|
passthru = {
|
|
updateScript = pantheon.updateScript {
|
|
attrPath = "pantheon.${pname}";
|
|
};
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
libxml2
|
|
meson
|
|
ninja
|
|
pkgconfig
|
|
python3
|
|
vala
|
|
];
|
|
|
|
buildInputs = [
|
|
evolution-data-server
|
|
granite
|
|
gtk3
|
|
libgee
|
|
libical
|
|
libsoup
|
|
wingpanel
|
|
];
|
|
|
|
patches = [
|
|
# Add support for libecal-2.0
|
|
(fetchpatch {
|
|
url = "https://github.com/elementary/wingpanel-indicator-datetime/commit/3ccd05d611e6dd5274a03f061ba1b5e13d6fe0cf.patch";
|
|
sha256 = "011q9b4pjmk4fpq5zscl5r8m4n3jiyx464023h4j7zf8r1070jz6";
|
|
})
|
|
];
|
|
|
|
postPatch = ''
|
|
chmod +x meson/post_install.py
|
|
patchShebangs meson/post_install.py
|
|
'';
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "Date & Time Indicator for Wingpanel";
|
|
homepage = https://github.com/elementary/wingpanel-indicator-datetime;
|
|
license = licenses.gpl2Plus;
|
|
platforms = platforms.linux;
|
|
maintainers = pantheon.maintainers;
|
|
};
|
|
}
|