LunNova / replugged-nix-flake

UNMAINTAINED Nix flake for @replugged-org replugged, forked from @LavaDesu's powercord overlay
MIT License
8 stars 3 forks source link

Injection is currently broken due to upstream bug/discord changes #6

Open LunNova opened 1 year ago

LunNova commented 1 year ago

Upstream issue due to discord changes. See https://github.com/replugged-org/replugged/issues/202 - says canary but applies to all builds now.

LunNova commented 1 year ago

Bad news: https://github.com/replugged-org/replugged/issues/205

rhysperry111 commented 1 year ago

The guys over at BetterDiscord suffered the same problem. I think they either partially or completely fixed it with this pull

EDIT: Didn't realise I'd managed to navigate out of the replugged repo, sorry for the spam

LunNova commented 1 year ago

Added withOpenAsar option which allows using https://openasar.dev for theming, but it doesn't work with the declarative config yet.

Looks like replugged are going for a rewrite in the rewrite branch so I expect it will take them some time.

LunNova commented 1 year ago

https://github.com/replugged-org/replugged/commit/aad5018ba92374342eed4f6f72ed61ae7f468a7c

"plugin support is here"

Looks like the rewrite is almost ready, plugins will need updated to work with it. I'll try to get it packaged at the weekend if it's in a workable state.

LunNova commented 1 year ago

Still rapidly iterating on things in that branch and doesn't seem ready for use yet. Maybe next weekend.

LunNova commented 1 year ago

The new replugged branch appears to be somewhat usable now. I hope to get this working at the weekend.

somasis commented 1 year ago

It looks like Replugged is becoming quite a lot more usable again- I'm not sure if the patches or installation process needs updating, but, they've at least got some beta versions out now.

pupbrained commented 1 year ago

Replugged was completely rewritten so, yes, the installation process does need updating. I have a simple flake for it that I use on my system, that I just modified from the one I used for Vencord. The two modifications seem to use very similar installations.

somasis commented 1 year ago

The rewrite has been finished.

https://github.com/replugged-org/replugged/releases/tag/v4.0.0

babeuh commented 1 year ago

The new replugged branch appears to be somewhat usable now. I hope to get this working at the weekend.

Any updates on this? @LunNova

LunNova commented 1 year ago

Sorry, no.

I've recently taken to using armcord from nixpkgs and not doing much custom, due to a lack of time to work on this.

It's about time to admit I don't have the bandwidth for this so if anyone else does get this working I'll put up a redirect notice / etc to their flake.

Henry-Hiles commented 12 months ago

Upstream issue due to discord changes. See replugged-org/replugged#202 - says canary but applies to all builds now.

This is now fixed upstream, so should be fine?

LunNova commented 12 months ago

The mkYarnPackage build for replugged stopped working at some point during their rewrite so someone will have to figure out how to fix that to update this.

error: builder for '/nix/store/q2s41wknk07xgiffvwhmb8z4glq47kxs-replugged-modules-4.0.0-beta0.25.drv' failed with exit code 1;
       last 10 log lines:
       > yarn config v1.22.19
       > success Set "yarn-offline-mirror" to "/nix/store/kshwvvc8l0v6nq95dhddcpd9wimb5w7h-offline".
       > Done in 0.01s.
       > yarn install v1.22.19
       > [1/4] Resolving packages...
       > [2/4] Fetching packages...
       > [] 0/898[] 13/898[] 24/898error An unexpected error occurred: "EACCES: permission denied, unlink '/nix/store/kshwvvc8l0v6nq95dhddcpd9wimb5w7h-offline/eslint-config-dmitmel.git'".
       > info If you think this is a bug, please open a bug report with the information provided in "/build/yarn-error.log".
LunNova commented 12 months ago

Similar to https://github.com/NixOS/nixpkgs/issues/174114

Henry-Hiles commented 12 months ago

Why can't you just use npm run build? Or pnpm?

LunNova commented 12 months ago

You can't access online resources in nix builds. I didn't see they changed again from yarn to pnpm.

Looks like nobody's written tooling for pnpm for nix yet: https://github.com/NixOS/nixpkgs/issues/231513

LunNova commented 6 months ago

https://github.com/NixOS/nixpkgs/pull/290715 is trying to upstream pnpm support