about summary refs log tree commit diff
path: root/pkgs/applications/networking/instant-messengers/element/element-desktop.nix
diff options
context:
space:
mode:
authorAustin Butler <austinabutler@gmail.com>2022-01-02 15:28:13 -0800
committerAustin Butler <austinabutler@gmail.com>2022-01-02 15:28:13 -0800
commitb85a0597380060def713a7ff3b13a6478c1a265c (patch)
tree352acf56068f765ce388da6d737ecd6517759d71 /pkgs/applications/networking/instant-messengers/element/element-desktop.nix
parentc003ae2dea252c20c58b1eb59b7b54e6170647d7 (diff)
element-desktop: fix "Sqlcipher support is missing"
Diffstat (limited to 'pkgs/applications/networking/instant-messengers/element/element-desktop.nix')
-rw-r--r--pkgs/applications/networking/instant-messengers/element/element-desktop.nix5
1 files changed, 4 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 bce13052e5ac4..1a0c25c606b04 100644
--- a/pkgs/applications/networking/instant-messengers/element/element-desktop.nix
+++ b/pkgs/applications/networking/instant-messengers/element/element-desktop.nix
@@ -7,6 +7,7 @@
 , fetchYarnDeps
 , electron
 , element-web
+, sqlcipher
 , callPackage
 , Security
 , AppKit
@@ -78,7 +79,9 @@ mkYarnPackage rec {
     ln -s "${desktopItem}/share/applications" "$out/share/applications"
 
     # executable wrapper
+    # LD_PRELOAD workaround for sqlcipher not found: https://github.com/matrix-org/seshat/issues/102
     makeWrapper '${electron_exec}' "$out/bin/${executableName}" \
+      --set LD_PRELOAD ${sqlcipher}/lib/libsqlcipher.so \
       --add-flags "$out/share/element/electron${lib.optionalString useWayland " --enable-features=UseOzonePlatform --ozone-platform=wayland"}"
   '';
 
@@ -94,7 +97,7 @@ mkYarnPackage rec {
     name = "element-desktop";
     exec = "${executableName} %u";
     icon = "element";
-    desktopName = "Element (Riot)";
+    desktopName = "Element";
     genericName = "Matrix Client";
     comment = meta.description;
     categories = "Network;InstantMessaging;Chat;";