mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-09-21 21:09:00 +02:00
Merge pull request #230983 from bobby285271/upd/elementary-planner
elementary-planner: 2.7 -> unstable-2023-04-20
This commit is contained in:
commit
9fd13fa905
|
@ -1,38 +1,35 @@
|
||||||
{ lib, stdenv
|
{ stdenv
|
||||||
|
, lib
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
|
, desktop-file-utils
|
||||||
, meson
|
, meson
|
||||||
, ninja
|
, ninja
|
||||||
, pkg-config
|
, pkg-config
|
||||||
, desktop-file-utils
|
|
||||||
, python3
|
, python3
|
||||||
, vala
|
, vala
|
||||||
, wrapGAppsHook
|
, wrapGAppsHook4
|
||||||
, evolution-data-server
|
, evolution-data-server
|
||||||
, libical
|
|
||||||
, libgee
|
|
||||||
, json-glib
|
|
||||||
, glib
|
, glib
|
||||||
, glib-networking
|
, glib-networking
|
||||||
|
, gtk4
|
||||||
|
, json-glib
|
||||||
|
, libadwaita
|
||||||
|
, libgee
|
||||||
|
, libical
|
||||||
|
, pantheon
|
||||||
, sqlite
|
, sqlite
|
||||||
, libsoup
|
, webkitgtk_6_0
|
||||||
, libgdata
|
|
||||||
, gtk3
|
|
||||||
, pantheon /* granite, icons, maintainers */
|
|
||||||
, webkitgtk
|
|
||||||
, libpeas
|
|
||||||
, libhandy
|
|
||||||
, curl
|
|
||||||
}:
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "elementary-planner";
|
pname = "elementary-planner";
|
||||||
version = "2.7";
|
version = "unstable-2023-04-20";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "alainm23";
|
owner = "alainm23";
|
||||||
repo = "planner";
|
repo = "planner";
|
||||||
rev = version;
|
rev = "97c0f1c30d087e2ac459241bfdb9b606a12a77ce";
|
||||||
sha256 = "sha256-3eFPGRcZWhzFYi52TbHmpFNLI0pWYcHbbBI7efqZwYE=";
|
sha256 = "sha256-W4Hfa9zgKpGKfd7QSTLF2FT0vSJ5mQMV+W9WWltZlL4=";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
|
@ -42,64 +39,40 @@ stdenv.mkDerivation rec {
|
||||||
pkg-config
|
pkg-config
|
||||||
python3
|
python3
|
||||||
vala
|
vala
|
||||||
wrapGAppsHook
|
wrapGAppsHook4
|
||||||
];
|
];
|
||||||
|
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
evolution-data-server
|
evolution-data-server
|
||||||
glib
|
glib
|
||||||
glib-networking
|
glib-networking
|
||||||
gtk3
|
gtk4
|
||||||
json-glib
|
json-glib
|
||||||
|
libadwaita
|
||||||
libgee
|
libgee
|
||||||
libical
|
libical
|
||||||
libpeas
|
pantheon.granite7
|
||||||
libsoup
|
|
||||||
pantheon.elementary-icon-theme
|
|
||||||
pantheon.granite
|
|
||||||
sqlite
|
sqlite
|
||||||
webkitgtk
|
webkitgtk_6_0
|
||||||
libhandy
|
];
|
||||||
curl
|
|
||||||
|
mesonFlags = [
|
||||||
|
"-Dproduction=true"
|
||||||
];
|
];
|
||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
# The GTK theme has been renamed in elementary OS 6
|
|
||||||
# https://github.com/elementary/flatpak-platform/blob/6.1.0/io.elementary.Sdk.json#L182
|
|
||||||
# Remove this in https://github.com/NixOS/nixpkgs/pull/159249
|
|
||||||
substituteInPlace src/Application.vala \
|
|
||||||
--replace '"gtk-theme-name", "elementary"' '"gtk-theme-name", "io.elementary.stylesheet.blueberry"'
|
|
||||||
|
|
||||||
# Fix build with vala 0.56
|
|
||||||
# https://github.com/alainm23/planner/pull/884
|
|
||||||
substituteInPlace src/Application.vala \
|
|
||||||
--replace "public const OptionEntry[] PLANNER_OPTIONS" "private const OptionEntry[] PLANNER_OPTIONS"
|
|
||||||
|
|
||||||
chmod +x build-aux/meson/post_install.py
|
chmod +x build-aux/meson/post_install.py
|
||||||
patchShebangs build-aux/meson/post_install.py
|
patchShebangs build-aux/meson/post_install.py
|
||||||
'';
|
substituteInPlace build-aux/meson/post_install.py \
|
||||||
|
--replace "gtk-update-icon-cache" "gtk4-update-icon-cache"
|
||||||
preFixup = ''
|
|
||||||
gappsWrapperArgs+=(
|
|
||||||
# The GTK theme is hardcoded.
|
|
||||||
--prefix XDG_DATA_DIRS : "${pantheon.elementary-gtk-theme}/share"
|
|
||||||
# The icon theme is hardcoded.
|
|
||||||
--prefix XDG_DATA_DIRS : "$XDG_ICON_DIRS"
|
|
||||||
)
|
|
||||||
'';
|
|
||||||
|
|
||||||
postFixup = ''
|
|
||||||
ln -s $out/bin/com.github.alainm23.planner $out/bin/planner
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Task manager with Todoist support designed for GNU/Linux 🚀️";
|
description = "Task manager with Todoist support designed for GNU/Linux";
|
||||||
homepage = "https://planner-todo.web.app";
|
homepage = "https://useplanner.com";
|
||||||
license = licenses.gpl3;
|
license = licenses.gpl3Plus;
|
||||||
maintainers = with maintainers; [ dtzWill ] ++ teams.pantheon.members;
|
maintainers = with maintainers; [ dtzWill ] ++ teams.pantheon.members;
|
||||||
platforms = platforms.linux;
|
platforms = platforms.linux;
|
||||||
mainProgram = "com.github.alainm23.planner";
|
mainProgram = "com.github.alainm23.task-planner";
|
||||||
broken = true; # https://github.com/alainm23/planner/issues/928
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue