2023-05-24 13:37:59 +00:00
|
|
|
{ stdenv
|
|
|
|
, lib
|
2020-04-24 23:36:52 +00:00
|
|
|
, fetchFromGitHub
|
2023-05-24 13:37:59 +00:00
|
|
|
, desktop-file-utils
|
2020-04-24 23:36:52 +00:00
|
|
|
, meson
|
|
|
|
, ninja
|
2021-02-05 17:12:51 +00:00
|
|
|
, pkg-config
|
2020-04-24 23:36:52 +00:00
|
|
|
, python3
|
|
|
|
, vala
|
2023-05-24 13:37:59 +00:00
|
|
|
, wrapGAppsHook4
|
2020-04-24 23:36:52 +00:00
|
|
|
, evolution-data-server
|
|
|
|
, glib
|
2021-04-22 02:08:21 +00:00
|
|
|
, glib-networking
|
2023-05-24 13:37:59 +00:00
|
|
|
, gtk4
|
|
|
|
, json-glib
|
|
|
|
, libadwaita
|
|
|
|
, libgee
|
|
|
|
, libical
|
|
|
|
, pantheon
|
2020-04-24 23:36:52 +00:00
|
|
|
, sqlite
|
2023-05-24 13:37:59 +00:00
|
|
|
, webkitgtk_6_0
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "elementary-planner";
|
2023-05-24 13:37:59 +00:00
|
|
|
version = "unstable-2023-04-20";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "alainm23";
|
|
|
|
repo = "planner";
|
2023-05-24 13:37:59 +00:00
|
|
|
rev = "97c0f1c30d087e2ac459241bfdb9b606a12a77ce";
|
|
|
|
sha256 = "sha256-W4Hfa9zgKpGKfd7QSTLF2FT0vSJ5mQMV+W9WWltZlL4=";
|
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
|
2023-05-24 13:37:59 +00:00
|
|
|
wrapGAppsHook4
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
evolution-data-server
|
|
|
|
glib
|
2021-04-22 02:08:21 +00:00
|
|
|
glib-networking
|
2023-05-24 13:37:59 +00:00
|
|
|
gtk4
|
2020-04-24 23:36:52 +00:00
|
|
|
json-glib
|
2023-05-24 13:37:59 +00:00
|
|
|
libadwaita
|
2020-04-24 23:36:52 +00:00
|
|
|
libgee
|
|
|
|
libical
|
2023-05-24 13:37:59 +00:00
|
|
|
pantheon.granite7
|
2020-04-24 23:36:52 +00:00
|
|
|
sqlite
|
2023-05-24 13:37:59 +00:00
|
|
|
webkitgtk_6_0
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
2023-05-24 13:37:59 +00:00
|
|
|
mesonFlags = [
|
|
|
|
"-Dproduction=true"
|
|
|
|
];
|
2022-03-30 09:31:56 +00:00
|
|
|
|
2023-05-24 13:37:59 +00:00
|
|
|
postPatch = ''
|
2020-04-24 23:36:52 +00:00
|
|
|
chmod +x build-aux/meson/post_install.py
|
|
|
|
patchShebangs build-aux/meson/post_install.py
|
2023-05-24 13:37:59 +00:00
|
|
|
substituteInPlace build-aux/meson/post_install.py \
|
|
|
|
--replace "gtk-update-icon-cache" "gtk4-update-icon-cache"
|
2021-04-22 02:08:21 +00:00
|
|
|
'';
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2023-05-24 13:37:59 +00:00
|
|
|
description = "Task manager with Todoist support designed for GNU/Linux";
|
|
|
|
homepage = "https://useplanner.com";
|
|
|
|
license = licenses.gpl3Plus;
|
2021-09-22 15:38:15 +00:00
|
|
|
maintainers = with maintainers; [ dtzWill ] ++ teams.pantheon.members;
|
2021-12-06 16:07:01 +00:00
|
|
|
platforms = platforms.linux;
|
2023-05-24 13:37:59 +00:00
|
|
|
mainProgram = "com.github.alainm23.task-planner";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|