Open
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
- Try add discord package like this:
{pkgs, ...}: {
environment.systemPackages = with pkgs; [
(discord.override {
withVencord = true;
vencord = equicord;
})
];
}
- Launch discord in the console
- Observe the error (see the logs)
Expected behaviour
Discord successfully launches with Equicord installed
Screenshots
Equicord package structure:
Vencord package structure:
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:
- Change Equicord package (make structure more like Vencord's one)
- 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
- I assert that this is a bug and not a support request.
- I assert that this is not a duplicate of an existing issue.
- I assert that I have read the NixOS Code of Conduct and agree to abide by it.
Is this issue important to you?
Add a 👍 reaction to issues you find important.
Activity