element-desktop: do not set LD_LIBRARY_PATH

libnotify is now included in electron's RPATH, so we can avoid setting
LD_LIBRARY_PATH here.
This commit is contained in:
Maximilian Marx 2024-04-15 11:22:07 +02:00
parent 461a23c756
commit d6cc760223
No known key found for this signature in database
GPG Key ID: D981CA0FF602751D
1 changed files with 0 additions and 7 deletions

View File

@ -16,7 +16,6 @@
, AppKit
, CoreServices
, desktopToDarwinBundle
, libnotify
, useKeytar ? true
}:
@ -79,11 +78,6 @@ stdenv.mkDerivation (finalAttrs: builtins.removeAttrs pinData [ "hashes" ] // {
'';
installPhase =
let
libPath = lib.makeLibraryPath [
libnotify
];
in
''
runHook preInstall
@ -111,7 +105,6 @@ 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}}"