2021-01-15 22:18:51 +00:00
|
|
|
|
{ lib, stdenv
|
2020-04-24 23:36:52 +00:00
|
|
|
|
, fetchFromGitHub
|
|
|
|
|
, meson
|
|
|
|
|
, ninja
|
2021-02-05 17:12:51 +00:00
|
|
|
|
, pkg-config
|
2020-04-24 23:36:52 +00:00
|
|
|
|
, desktop-file-utils
|
|
|
|
|
, python3
|
|
|
|
|
, vala
|
|
|
|
|
, wrapGAppsHook
|
|
|
|
|
, evolution-data-server
|
|
|
|
|
, libical
|
|
|
|
|
, libgee
|
|
|
|
|
, json-glib
|
|
|
|
|
, glib
|
2021-04-22 02:08:21 +00:00
|
|
|
|
, glib-networking
|
2020-04-24 23:36:52 +00:00
|
|
|
|
, sqlite
|
|
|
|
|
, libsoup
|
2021-05-20 23:08:51 +00:00
|
|
|
|
, libgdata
|
2020-04-24 23:36:52 +00:00
|
|
|
|
, gtk3
|
|
|
|
|
, pantheon /* granite, icons, maintainers */
|
|
|
|
|
, webkitgtk
|
2021-04-22 02:08:21 +00:00
|
|
|
|
, libpeas
|
2020-04-24 23:36:52 +00:00
|
|
|
|
}:
|
|
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
|
pname = "elementary-planner";
|
2021-04-22 02:08:21 +00:00
|
|
|
|
version = "2.6.9";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
|
owner = "alainm23";
|
|
|
|
|
repo = "planner";
|
|
|
|
|
rev = version;
|
2021-04-22 02:08:21 +00:00
|
|
|
|
sha256 = "17ij017x2cplqhway8376k8mmrll4w1jfwhf7ixldq9g0q2inzd8";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
|
desktop-file-utils
|
|
|
|
|
meson
|
|
|
|
|
ninja
|
2021-02-05 17:12:51 +00:00
|
|
|
|
pkg-config
|
2020-04-24 23:36:52 +00:00
|
|
|
|
python3
|
|
|
|
|
vala
|
|
|
|
|
wrapGAppsHook
|
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
|
evolution-data-server
|
|
|
|
|
glib
|
2021-04-22 02:08:21 +00:00
|
|
|
|
glib-networking
|
2020-04-24 23:36:52 +00:00
|
|
|
|
gtk3
|
|
|
|
|
json-glib
|
|
|
|
|
libgee
|
|
|
|
|
libical
|
2021-04-22 02:08:21 +00:00
|
|
|
|
libpeas
|
2020-04-24 23:36:52 +00:00
|
|
|
|
libsoup
|
|
|
|
|
pantheon.elementary-icon-theme
|
|
|
|
|
pantheon.granite
|
|
|
|
|
sqlite
|
|
|
|
|
webkitgtk
|
2021-05-20 23:08:51 +00:00
|
|
|
|
libgdata # required by some dependency transitively
|
2020-04-24 23:36:52 +00:00
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
|
chmod +x build-aux/meson/post_install.py
|
|
|
|
|
patchShebangs build-aux/meson/post_install.py
|
|
|
|
|
'';
|
|
|
|
|
|
|
|
|
|
preFixup = ''
|
|
|
|
|
gappsWrapperArgs+=(
|
|
|
|
|
# the theme is hardcoded
|
|
|
|
|
--prefix XDG_DATA_DIRS : "${pantheon.elementary-gtk-theme}/share"
|
|
|
|
|
)
|
|
|
|
|
'';
|
|
|
|
|
|
2021-04-22 02:08:21 +00:00
|
|
|
|
postFixup = ''
|
|
|
|
|
ln -s $out/bin/com.github.alainm23.planner $out/bin/planner
|
|
|
|
|
'';
|
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
|
description = "Task manager with Todoist support designed for GNU/Linux 🚀️";
|
|
|
|
|
homepage = "https://planner-todo.web.app";
|
|
|
|
|
license = licenses.gpl3;
|
|
|
|
|
maintainers = with maintainers; [ dtzWill ] ++ pantheon.maintainers;
|
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
|