2021-01-11 07:54:33 +00:00
|
|
|
|
{ lib, stdenv
|
2020-04-20 15:03:42 +00:00
|
|
|
|
, fetchFromGitHub
|
|
|
|
|
, meson
|
|
|
|
|
, ninja
|
2021-01-17 02:09:27 +00:00
|
|
|
|
, pkg-config
|
2020-04-20 15:03:42 +00:00
|
|
|
|
, desktop-file-utils
|
|
|
|
|
, python3
|
|
|
|
|
, vala
|
|
|
|
|
, wrapGAppsHook
|
2020-02-03 18:14:53 +00:00
|
|
|
|
, evolution-data-server
|
|
|
|
|
, libical
|
|
|
|
|
, libgee
|
|
|
|
|
, json-glib
|
|
|
|
|
, glib
|
2021-04-13 14:49:31 +00:00
|
|
|
|
, glib-networking
|
2020-02-03 18:14:53 +00:00
|
|
|
|
, sqlite
|
|
|
|
|
, libsoup
|
2021-04-28 02:07:39 +00:00
|
|
|
|
, libgdata
|
2020-02-03 18:14:53 +00:00
|
|
|
|
, gtk3
|
|
|
|
|
, pantheon /* granite, icons, maintainers */
|
|
|
|
|
, webkitgtk
|
2021-04-13 14:49:31 +00:00
|
|
|
|
, libpeas
|
2021-08-22 15:12:17 +00:00
|
|
|
|
, libhandy
|
|
|
|
|
, curl
|
2020-02-03 18:14:53 +00:00
|
|
|
|
}:
|
|
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
|
pname = "elementary-planner";
|
2021-08-22 15:12:17 +00:00
|
|
|
|
version = "2.7";
|
2020-02-03 18:14:53 +00:00
|
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
|
owner = "alainm23";
|
|
|
|
|
repo = "planner";
|
|
|
|
|
rev = version;
|
2021-08-22 15:12:17 +00:00
|
|
|
|
sha256 = "sha256-3eFPGRcZWhzFYi52TbHmpFNLI0pWYcHbbBI7efqZwYE=";
|
2020-02-03 18:14:53 +00:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
|
desktop-file-utils
|
|
|
|
|
meson
|
|
|
|
|
ninja
|
2021-01-17 02:09:27 +00:00
|
|
|
|
pkg-config
|
2020-02-03 18:14:53 +00:00
|
|
|
|
python3
|
|
|
|
|
vala
|
|
|
|
|
wrapGAppsHook
|
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
|
evolution-data-server
|
|
|
|
|
glib
|
2021-04-13 14:49:31 +00:00
|
|
|
|
glib-networking
|
2020-02-03 18:14:53 +00:00
|
|
|
|
gtk3
|
2020-04-01 05:07:50 +00:00
|
|
|
|
json-glib
|
|
|
|
|
libgee
|
|
|
|
|
libical
|
2021-04-13 14:49:31 +00:00
|
|
|
|
libpeas
|
2020-04-01 05:07:50 +00:00
|
|
|
|
libsoup
|
|
|
|
|
pantheon.elementary-icon-theme
|
2020-02-03 18:14:53 +00:00
|
|
|
|
pantheon.granite
|
2020-04-01 05:07:50 +00:00
|
|
|
|
sqlite
|
2020-02-03 18:14:53 +00:00
|
|
|
|
webkitgtk
|
2021-04-28 02:07:39 +00:00
|
|
|
|
libgdata # required by some dependency transitively
|
2021-08-22 15:12:17 +00:00
|
|
|
|
libhandy
|
|
|
|
|
curl
|
2020-02-03 18:14:53 +00:00
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
|
chmod +x build-aux/meson/post_install.py
|
|
|
|
|
patchShebangs build-aux/meson/post_install.py
|
|
|
|
|
'';
|
|
|
|
|
|
2020-04-20 15:03:42 +00:00
|
|
|
|
preFixup = ''
|
|
|
|
|
gappsWrapperArgs+=(
|
|
|
|
|
# the theme is hardcoded
|
|
|
|
|
--prefix XDG_DATA_DIRS : "${pantheon.elementary-gtk-theme}/share"
|
|
|
|
|
)
|
|
|
|
|
'';
|
|
|
|
|
|
2021-04-13 14:49:31 +00:00
|
|
|
|
postFixup = ''
|
|
|
|
|
ln -s $out/bin/com.github.alainm23.planner $out/bin/planner
|
|
|
|
|
'';
|
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
|
meta = with lib; {
|
2020-04-20 15:03:42 +00:00
|
|
|
|
description = "Task manager with Todoist support designed for GNU/Linux 🚀️";
|
2020-02-03 18:14:53 +00:00
|
|
|
|
homepage = "https://planner-todo.web.app";
|
|
|
|
|
license = licenses.gpl3;
|
2021-09-18 15:00:51 +00:00
|
|
|
|
maintainers = with maintainers; [ dtzWill ] ++ teams.pantheon.members;
|
2021-11-03 10:27:38 +00:00
|
|
|
|
platforms = platforms.linux;
|
|
|
|
|
mainProgram = "com.github.alainm23.planner";
|
2020-02-03 18:14:53 +00:00
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
|