From c7a2d51cb45d6aa56702a0a2db9ab859fdee5830 Mon Sep 17 00:00:00 2001 From: huantian Date: Tue, 15 Aug 2023 20:56:23 -0700 Subject: [PATCH] webcord: 4.3.0 -> 4.4.0 --- .../instant-messengers/webcord/default.nix | 12 ++++++------ .../webcord/webcord-vencord/default.nix | 9 ++------- 2 files changed, 8 insertions(+), 13 deletions(-) diff --git a/pkgs/applications/networking/instant-messengers/webcord/default.nix b/pkgs/applications/networking/instant-messengers/webcord/default.nix index 6a52d7107339..6018a6f7e533 100644 --- a/pkgs/applications/networking/instant-messengers/webcord/default.nix +++ b/pkgs/applications/networking/instant-messengers/webcord/default.nix @@ -6,23 +6,23 @@ , pipewire , libpulseaudio , xdg-utils -, electron_25 +, electron_26 , makeDesktopItem , nix-update-script }: buildNpmPackage rec { pname = "webcord"; - version = "4.3.0"; + version = "4.4.0"; src = fetchFromGitHub { owner = "SpacingBat3"; repo = "WebCord"; rev = "v${version}"; - hash = "sha256-E/WXAVSCNTDEDaz71LXOHUf/APFO2uSpkTRhlZfQp0E="; + hash = "sha256-Kiw3pebjH9Pz5oi6Gbjxrjd/kvozapLNqfWLVuTXF/I="; }; - npmDepsHash = "sha256-vGaYjM13seVmRbVPyDIM+qhGTCj6rw/el6Dq3KMzDks="; + npmDepsHash = "sha256-CPGfhV8VXbpX9UB5oQhI+IwFWPgYq2dGnSuyByMNGg4="; nativeBuildInputs = [ copyDesktopItems @@ -56,7 +56,7 @@ buildNpmPackage rec { install -Dm644 sources/assets/icons/app.png $out/share/icons/hicolor/256x256/apps/webcord.png # Add xdg-utils to path via suffix, per PR #181171 - makeWrapper '${electron_25}/bin/electron' $out/bin/webcord \ + makeWrapper '${electron_26}/bin/electron' $out/bin/webcord \ --prefix LD_LIBRARY_PATH : ${libPath}:$out/opt/webcord \ --suffix PATH : "${lib.makeBinPath [ xdg-utils ]}" \ --add-flags "\''${NIXOS_OZONE_WL:+\''${WAYLAND_DISPLAY:+--ozone-platform=wayland}}" \ @@ -86,6 +86,6 @@ buildNpmPackage rec { license = licenses.mit; mainProgram = "webcord"; maintainers = with maintainers; [ huantian ]; - platforms = electron_25.meta.platforms; + platforms = platforms.linux; }; } diff --git a/pkgs/applications/networking/instant-messengers/webcord/webcord-vencord/default.nix b/pkgs/applications/networking/instant-messengers/webcord/webcord-vencord/default.nix index d55af49f1154..0f4a9b4f31e7 100644 --- a/pkgs/applications/networking/instant-messengers/webcord/webcord-vencord/default.nix +++ b/pkgs/applications/networking/instant-messengers/webcord/webcord-vencord/default.nix @@ -2,10 +2,9 @@ , substituteAll , lib , vencord-web-extension -, electron_24 }: -(webcord.overrideAttrs (old: { +webcord.overrideAttrs (old: { patches = (old.patches or [ ]) ++ [ (substituteAll { src = ./add-extension.patch; @@ -17,8 +16,4 @@ 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; -} +})