about summary refs log tree commit diff
path: root/pkgs/applications/office/planify
diff options
context:
space:
mode:
authorBobby Rong <rjl931189261@126.com>2023-06-24 10:36:59 +0800
committerBobby Rong <rjl931189261@126.com>2023-06-24 11:42:03 +0800
commitda1b5e43ef4adea2f6b3b2d1964465b42d361411 (patch)
tree7a998c954f3b2a40836f7b4cde951e0df18e04ec /pkgs/applications/office/planify
parentb721d2721487613940b2ac1f676360ba65d6dc2f (diff)
planify: unstable-2023-04-20 -> 4.1
https://github.com/alainm23/planify/compare/97c0f1c30d087e2a...4.1
Diffstat (limited to 'pkgs/applications/office/planify')
-rw-r--r--pkgs/applications/office/planify/default.nix23
1 files changed, 6 insertions, 17 deletions
diff --git a/pkgs/applications/office/planify/default.nix b/pkgs/applications/office/planify/default.nix
index 3bcbe78199443..59f603a1ae36e 100644
--- a/pkgs/applications/office/planify/default.nix
+++ b/pkgs/applications/office/planify/default.nix
@@ -5,7 +5,6 @@
 , meson
 , ninja
 , pkg-config
-, python3
 , vala
 , wrapGAppsHook4
 , evolution-data-server
@@ -16,6 +15,7 @@
 , libadwaita
 , libgee
 , libical
+, libportal-gtk4
 , pantheon
 , sqlite
 , webkitgtk_6_0
@@ -23,13 +23,13 @@
 
 stdenv.mkDerivation rec {
   pname = "planify";
-  version = "unstable-2023-04-20";
+  version = "4.1";
 
   src = fetchFromGitHub {
     owner = "alainm23";
     repo = "planify";
-    rev = "97c0f1c30d087e2ac459241bfdb9b606a12a77ce";
-    sha256 = "sha256-W4Hfa9zgKpGKfd7QSTLF2FT0vSJ5mQMV+W9WWltZlL4=";
+    rev = version;
+    sha256 = "sha256-H8TPuqKRwbcB+2NTC5ZIK7y6uiYbTT4svtx21FbTzME=";
   };
 
   nativeBuildInputs = [
@@ -37,7 +37,6 @@ stdenv.mkDerivation rec {
     meson
     ninja
     pkg-config
-    python3
     vala
     wrapGAppsHook4
   ];
@@ -51,28 +50,18 @@ stdenv.mkDerivation rec {
     libadwaita
     libgee
     libical
+    libportal-gtk4
     pantheon.granite7
     sqlite
     webkitgtk_6_0
   ];
 
-  mesonFlags = [
-    "-Dproduction=true"
-  ];
-
-  postPatch = ''
-    chmod +x 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"
-  '';
-
   meta = with lib; {
     description = "Task manager with Todoist support designed for GNU/Linux";
     homepage = "https://github.com/alainm23/planify";
     license = licenses.gpl3Plus;
     maintainers = with maintainers; [ dtzWill ] ++ teams.pantheon.members;
     platforms = platforms.linux;
-    mainProgram = "com.github.alainm23.task-planner";
+    mainProgram = "io.github.alainm23.planify";
   };
 }