about summary refs log tree commit diff
path: root/pkgs/applications/networking/instant-messengers
diff options
context:
space:
mode:
authorRutherther <rutherther@proton.me>2024-03-18 19:19:14 +0100
committerRutherther <rutherther@proton.me>2024-03-18 19:19:14 +0100
commit0ce12029c8e52979c53f89327c3fafd8919c580f (patch)
tree26ada00d90433d49247ad4e2d0db8cf3d728db29 /pkgs/applications/networking/instant-messengers
parent70d7abc09c7bc6264ca3927db0e2eb03d94346e9 (diff)
downloadnixlib-0ce12029c8e52979c53f89327c3fafd8919c580f.tar
nixlib-0ce12029c8e52979c53f89327c3fafd8919c580f.tar.gz
nixlib-0ce12029c8e52979c53f89327c3fafd8919c580f.tar.bz2
nixlib-0ce12029c8e52979c53f89327c3fafd8919c580f.tar.lz
nixlib-0ce12029c8e52979c53f89327c3fafd8919c580f.tar.xz
nixlib-0ce12029c8e52979c53f89327c3fafd8919c580f.tar.zst
nixlib-0ce12029c8e52979c53f89327c3fafd8919c580f.zip
element-desktop: add libnotify runtime dependency
Diffstat (limited to 'pkgs/applications/networking/instant-messengers')
-rw-r--r--pkgs/applications/networking/instant-messengers/element/element-desktop.nix10
1 files changed, 9 insertions, 1 deletions
diff --git a/pkgs/applications/networking/instant-messengers/element/element-desktop.nix b/pkgs/applications/networking/instant-messengers/element/element-desktop.nix
index 46a7f821446c..ffbee0f25f82 100644
--- a/pkgs/applications/networking/instant-messengers/element/element-desktop.nix
+++ b/pkgs/applications/networking/instant-messengers/element/element-desktop.nix
@@ -16,6 +16,7 @@
 , AppKit
 , CoreServices
 , desktopToDarwinBundle
+, libnotify
 , useKeytar ? true
 }:
 
@@ -77,7 +78,13 @@ stdenv.mkDerivation (finalAttrs: builtins.removeAttrs pinData [ "hashes" ] // {
     runHook postBuild
   '';
 
-  installPhase = ''
+  installPhase =
+    let
+      libPath = lib.makeLibraryPath [
+        libnotify
+      ];
+    in
+  ''
     runHook preInstall
 
     # resources
@@ -104,6 +111,7 @@ stdenv.mkDerivation (finalAttrs: builtins.removeAttrs pinData [ "hashes" ] // {
     # LD_PRELOAD workaround for sqlcipher not found: https://github.com/matrix-org/seshat/issues/102
     makeWrapper '${electron}/bin/electron' "$out/bin/${executableName}" \
       --set LD_PRELOAD ${sqlcipher}/lib/libsqlcipher.so \
+      --set LD_LIBRARY_PATH "${libPath}" \
       --add-flags "$out/share/element/electron" \
       --add-flags "\''${NIXOS_OZONE_WL:+\''${WAYLAND_DISPLAY:+--ozone-platform-hint=auto --enable-features=WaylandWindowDecorations}}"