about summary refs log tree commit diff
path: root/pkgs/applications/office/timeline/default.nix
diff options
context:
space:
mode:
authorArtturin <Artturin@artturin.com>2023-04-08 22:50:24 +0300
committerArtturin <Artturin@artturin.com>2023-04-08 22:50:24 +0300
commit32ac1fb6ae50036c110b30fe27fe208b675812b8 (patch)
tree5336d7819bf5e7ec1db7236dd71fa87547aca545 /pkgs/applications/office/timeline/default.nix
parente8a861f940da69ca8d4607b893354b7177f7250e (diff)
timeline: fix crash on file dialog
env -i HOME="$HOME" DISPLAY="$DISPLAY" WAYLAND_DISPLAY="$WAYLAND_DISPLAY" XDG_RUNTIME_DIR="$XDG_RUNTIME_DIR" ./result/bin/timeline
Diffstat (limited to 'pkgs/applications/office/timeline/default.nix')
-rw-r--r--pkgs/applications/office/timeline/default.nix9
1 files changed, 8 insertions, 1 deletions
diff --git a/pkgs/applications/office/timeline/default.nix b/pkgs/applications/office/timeline/default.nix
index f3f404cda89f2..70776bb391bfc 100644
--- a/pkgs/applications/office/timeline/default.nix
+++ b/pkgs/applications/office/timeline/default.nix
@@ -4,6 +4,7 @@
 , gettext
 , makeDesktopItem
 , copyDesktopItems
+, wrapGAppsHook
 }:
 
 python3.pkgs.buildPythonApplication rec {
@@ -16,7 +17,7 @@ python3.pkgs.buildPythonApplication rec {
     sha256 = "sha256-qwH2mt3Va62QJKJGOpt5WV3QksqQaRGEif4CcPC5F2E=";
   };
 
-  nativeBuildInputs = [ python3.pkgs.wrapPython copyDesktopItems ];
+  nativeBuildInputs = [ python3.pkgs.wrapPython copyDesktopItems wrapGAppsHook ];
 
   pythonPath = with python3.pkgs; [
     wxPython_4_2
@@ -76,6 +77,12 @@ python3.pkgs.buildPythonApplication rec {
     runHook postCheck
   '';
 
+  dontWrapGApps = true;
+
+  preFixup = ''
+    makeWrapperArgs+=("''${gappsWrapperArgs[@]}")
+  '';
+
   meta = with lib; {
     homepage = "https://thetimelineproj.sourceforge.net/";
     changelog = "https://thetimelineproj.sourceforge.net/changelog.html";