about summary refs log tree commit diff
path: root/pkgs/applications/networking/instant-messengers/schildichat
diff options
context:
space:
mode:
authorYureka <yuka@yuka.dev>2022-11-14 16:47:51 +0100
committerGitHub <noreply@github.com>2022-11-14 16:47:51 +0100
commitcecc553095ea244e516003f7e0714669afb4af70 (patch)
treec96b5ad029b8cedf89e61e158cc21bf3ac98e3c7 /pkgs/applications/networking/instant-messengers/schildichat
parent0ad86f1a4f56422d5c368dfe07c1bf3f315def95 (diff)
schildichat-desktop: copy sqlcipher fix from element-desktop (#201179)
Diffstat (limited to 'pkgs/applications/networking/instant-messengers/schildichat')
-rw-r--r--pkgs/applications/networking/instant-messengers/schildichat/schildichat-desktop.nix3
1 files changed, 3 insertions, 0 deletions
diff --git a/pkgs/applications/networking/instant-messengers/schildichat/schildichat-desktop.nix b/pkgs/applications/networking/instant-messengers/schildichat/schildichat-desktop.nix
index 880981737d596..0573c7231e271 100644
--- a/pkgs/applications/networking/instant-messengers/schildichat/schildichat-desktop.nix
+++ b/pkgs/applications/networking/instant-messengers/schildichat/schildichat-desktop.nix
@@ -14,6 +14,7 @@
 , Security
 , AppKit
 , CoreServices
+, sqlcipher
 }:
 
 let
@@ -87,7 +88,9 @@ stdenv.mkDerivation rec {
     done
 
     # executable wrapper
+    # 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 \
       --add-flags "$out/share/element/electron" \
       --add-flags "\''${NIXOS_OZONE_WL:+\''${WAYLAND_DISPLAY:+--ozone-platform-hint=auto --enable-features=WaylandWindowDecorations}}"