webcord-vencord: override electron to use electron_24

Webcord has updated to electron 25, but that causes a segfault when launching webcord-vencord on wayland, so downgrade it for now.

Co-authored-by: FlafyDev <flafyarazi@gmail.com>
This commit is contained in:
huantian 2023-07-03 20:33:53 -07:00
parent 49e2fb7aae
commit d08c422dfb
No known key found for this signature in database
GPG Key ID: 4A0318E04E555DE5

View File

@ -2,8 +2,10 @@
, substituteAll
, lib
, vencord-web-extension
, electron_24
}:
webcord.overrideAttrs (old: {
(webcord.overrideAttrs (old: {
patches = (old.patches or [ ]) ++ [
(substituteAll {
src = ./add-extension.patch;
@ -15,4 +17,8 @@ webcord.overrideAttrs (old: {
description = "Webcord with Vencord web extension";
maintainers = with maintainers; [ FlafyDev NotAShelf ];
};
})
})).override {
# Webcord has updated to electron 25, but that causes a segfault
# when launching webcord-vencord on wayland, so downgrade it for now.
electron_25 = electron_24;
}