fix: nix dev shell can now run make targets (move away from FHS)#19
fix: nix dev shell can now run make targets (move away from FHS)#19jagrat7 merged 4 commits intojagrat7:mainfrom
Conversation
- move away from buildFHSEnv - impl workaround for RPM - no longer need to inject electron runtime libs
One use case is to use a more latest version of linux-wallpaperengine than the one in nixpkgs
|
I tried to launch through the sandbox but i kept running into errors, here a summary of what claude tried 1.
|
|
Going to merge it for now because i want to make some big refactors |
Ahhh GPU drivers are definitely a headache on NIx, will try to see if I can spin up a different distro on a spare laptop to see the graphics compat situation.
Slight oversight, I never use |
Using an FHS env for the Nix shell was a quick and easy way to get around Nix's non-FHS compliance but it caused sandboxing issues; namely, the flatpak make target just silently fails to build. I decided to take more time to just use
mkShell, and patch some things around to get electron and RPM to work nicely. Now, all electron-forge make targets compile on Nix, without FHS! (At least, on my end)I also confirmed that the zip and flatpak builds do work. For deb and rpm, I had to use distrobox. The app does open, but I just couldn't get the
linux-wallpaperenginebackend to compile due to some dynamic library issues, but I'll assume the generated artifacts for the app are correct.Also full disclosure that the RPM workaround in here went through some iterative prompting. I at least tried to leave the AI's thought process behind it. The wrappers aren't that complicated but I'll have to admit that I had to rely on a lot of help since I'm unfamiliar with how Fedora's packaging works (and how forge does their magic with it in the maker).
Do let me know if this plays better on your end (non-NixOS running Nix).