nixpkgs/pkgs/applications/office/elementary-planner/default.nix

87 lines
1.6 KiB
Nix
Raw Permalink Normal View History

{ lib, stdenv
, fetchFromGitHub
, meson
, ninja
, pkg-config
, desktop-file-utils
, python3
, vala
, wrapGAppsHook
, evolution-data-server
, libical
, libgee
, json-glib
, glib
2021-04-13 14:49:31 +00:00
, glib-networking
, sqlite
, libsoup
2021-04-28 02:07:39 +00:00
, libgdata
, gtk3
, pantheon /* granite, icons, maintainers */
, webkitgtk
2021-04-13 14:49:31 +00:00
, libpeas
}:
stdenv.mkDerivation rec {
pname = "elementary-planner";
2021-04-13 14:49:31 +00:00
version = "2.6.9";
src = fetchFromGitHub {
owner = "alainm23";
repo = "planner";
rev = version;
2021-04-13 14:49:31 +00:00
sha256 = "17ij017x2cplqhway8376k8mmrll4w1jfwhf7ixldq9g0q2inzd8";
};
nativeBuildInputs = [
desktop-file-utils
meson
ninja
pkg-config
python3
vala
wrapGAppsHook
];
buildInputs = [
evolution-data-server
glib
2021-04-13 14:49:31 +00:00
glib-networking
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
pantheon.granite
2020-04-01 05:07:50 +00:00
sqlite
webkitgtk
2021-04-28 02:07:39 +00:00
libgdata # required by some dependency transitively
];
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-13 14:49:31 +00:00
postFixup = ''
ln -s $out/bin/com.github.alainm23.planner $out/bin/planner
'';
meta = with lib; {
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;
};
}