feat: Allow custom resources path via environment variable#215
Merged
josselinonduty merged 1 commit intoaunetx:masterfrom Feb 22, 2026
Conversation
13 tasks
josselinonduty
requested changes
Feb 22, 2026
Collaborator
josselinonduty
left a comment
There was a problem hiding this comment.
Tiny detail, I think it would be better to name the patch "override-resources-path"
Otherwise, LGTM
Collaborator
|
Hey, The content of the patch looks good to me; I am not familiar with nix-related stuff but it seems to be a reasonable approach to solve your upstream issue. |
987a7e0 to
5afe413
Compare
5afe413 to
61e2049
Compare
josselinonduty
approved these changes
Feb 22, 2026
Contributor
Author
|
Hi Thank you for the feedback. I renamed the patch. Finally, to build the Nix package, I only use the asar, the systray.png, the svg and the .desktop. Maybe, could it be possible to publish an additional .tar.xz with only that on releases ? |
Contributor
Author
|
Thank you for the approval and merge too 🙏 |
Collaborator
|
I am waiting for an upstream deezer update to create a release (with your patch). it usually takes 1 or 2 weeks |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Hi
As a long time user of the Deezer-Desktop app with the Ubuntu .deb and my own NixOS derivation, I tried to publish it on Nixpkgs NixOS/nixpkgs#488329.
A Nix derivation is a wrapper to build an app from source or prebuilded packages for Nix packages manager and NixOS users. For deezer-linux, it only consists to put the files in the right place from the
.tar.xzreleases.One of the maintainers suggested NixOS/nixpkgs#488329 (review) to use the Nixpkgs packaged Electron instead of the deezer-linux one to reduce the derivation complexity, keep Electron up-to-date and mainly to not rebuild and patch the included Electron to make it working on NixOS (because of the linker differences).
So I made it and I encountered an issue. The default
process.resourcesPathis Electron one and not the folder packaged in the.tar.xzso the app is crashing at startup because it is not finding thesystray.pngicon.The only solution is to edit the
app.asarbecause NixOS packages are readonly so it is not possible to edit Electron to symlink the file without rebuilding it (and go back to a similar of the initial derivation).So I created a patch to the original app here to add the optional possibility to override the
process.resourcesPathwhen loading the systray icon whithout breaking Deezer.I tested it and it is solving the error.
If this patch is accepted and my Nixpkgs derivation PR too, the app will then be available on Nixpkgs for all NixOS users with your credits (because it is just a wrap) with the command
nix-shell -p deezer-desktopor by adding it to their NixOSconfiguration.nixor Nix Flakes.Thank you for your time and feel free to make suggestions on this PR if needed.