fix: make element and signal work with wayland
This commit is contained in:
parent
08f77c4641
commit
d573f60ddd
|
@ -39,7 +39,7 @@
|
||||||
(import ./blesh.nix)
|
(import ./blesh.nix)
|
||||||
(import ./rnix-lsp.nix)
|
(import ./rnix-lsp.nix)
|
||||||
(import ./neovim-plugins.nix)
|
(import ./neovim-plugins.nix)
|
||||||
(import ./signal-desktop.nix)
|
(import ./element-desktop.nix)
|
||||||
];
|
];
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
3
overlays/element-desktop.nix
Normal file
3
overlays/element-desktop.nix
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
final: prev: {
|
||||||
|
element-desktop = prev.element-desktop.override { electron = prev.electron_28; };
|
||||||
|
}
|
|
@ -1,19 +0,0 @@
|
||||||
final: prev: {
|
|
||||||
signal-desktop = prev.signal-desktop.overrideAttrs (oldAttrs: rec {
|
|
||||||
inherit (oldAttrs) pname;
|
|
||||||
dir = "Signal";
|
|
||||||
|
|
||||||
preFixup = ''
|
|
||||||
gappsWrapperArgs+=(
|
|
||||||
--prefix LD_LIBRARY_PATH : "${prev.lib.makeLibraryPath [prev.stdenv.cc.cc]}"
|
|
||||||
--add-flags "\''${NIXOS_OZONE_WL:+\''${WAYLAND_DISPLAY:+--ozone-platform-hint=auto --enable-features=WaylandWindowDecorations}}"
|
|
||||||
--suffix PATH : ${prev.lib.makeBinPath [prev.xdg-utils]}
|
|
||||||
)
|
|
||||||
# Fix the desktop link
|
|
||||||
substituteInPlace $out/share/applications/${pname}.desktop \
|
|
||||||
--replace "/opt/${dir}/${pname}" $out/bin/${pname}
|
|
||||||
autoPatchelf --no-recurse -- "$out/lib/${dir}/"
|
|
||||||
patchelf --add-needed ${prev.libpulseaudio}/lib/libpulse.so "$out/lib/${dir}/resources/app.asar.unpacked/node_modules/@signalapp/ringrtc/build/linux/libringrtc-x64.node"
|
|
||||||
'';
|
|
||||||
});
|
|
||||||
}
|
|
Loading…
Reference in a new issue