Skip to content

equicord: unable to use with current discord packages due to a different location of the patcher.js file #384446

Open
@NikSneMC

Description

Nixpkgs version

  • Unstable (25.05)

Describe the bug

Equicord package can't be used as a drop-in replacement for the Vencord package in the pkgs.discord.override.

Steps to reproduce

  1. Try add discord package like this:
{pkgs, ...}: {
    environment.systemPackages = with pkgs; [
        (discord.override {
             withVencord = true;
             vencord = equicord;
        })
    ];
}
  1. Launch discord in the console
  2. Observe the error (see the logs)

Expected behaviour

Discord successfully launches with Equicord installed

Screenshots

Equicord package structure:

Image

Vencord package structure:

Image

Relevant log output

discord
[Nix] Disabling updates already done
A JavaScript error occurred in the main process
Uncaught Exception:
Error: Cannot find module '/nix/store/b1mqmf9vsgyzmq47rw6d3grmxz03x8bc-equicord-1.11.4/patcher.js'
Require stack:
- /nix/store/n425h53c0wiijzlqkzr0nnk5kpcnqcsy-discord-0.0.85/opt/Discord/resources/app.asar/index.js
-
    at Module._resolveFilename (node:internal/modules/cjs/loader:1232:15)
    at s._resolveFilename (node:electron/js2c/browser_init:2:124479)
    at Module._load (node:internal/modules/cjs/loader:1058:27)
    at c._load (node:electron/js2c/node_init:2:16955)
    at Module.require (node:internal/modules/cjs/loader:1318:19)
    at require (node:internal/modules/helpers:179:18)
    at Object.<anonymous> (/nix/store/n425h53c0wiijzlqkzr0nnk5kpcnqcsy-discord-0.0.85/opt/Discord/resources/app.asar/index.js:1:1)
    at Module._compile (node:internal/modules/cjs/loader:1484:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1564:10)
    at Module.load (node:internal/modules/cjs/loader:1295:32)

Additional context

I think there's 2 ways how it can be fixed:

  1. Change Equicord package (make structure more like Vencord's one)
  2. Change Discord package (add Eqicord support)

I can make a PR with the fix.

System metadata

  • system: "x86_64-linux"
  • host os: Linux 6.13.3, NixOS, 25.05 (Warbler), 25.05.20250218.73cf49b
  • multi-user?: yes
  • sandbox: yes
  • version: nix-env (Nix) 2.24.12
  • nixpkgs: /nix/store/kdynjy1mbgkdg4p196v9gx6ljpf7q4nk-source

Notify maintainers

@NotAShelf

Note for maintainers: Please tag this issue in your pull request description. (i.e. Resolves #ISSUE.)

I assert that this issue is relevant for Nixpkgs

Is this issue important to you?

Add a 👍 reaction to issues you find important.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions