Conversation
|
This pull request has been mentioned on NixOS Discourse. There might be relevant details there: https://discourse.nixos.org/t/prs-ready-for-review/3032/4849 |
|
This pull request has been mentioned on NixOS Discourse. There might be relevant details there: https://discourse.nixos.org/t/prs-already-reviewed/2617/2120 |
JohnRTitor
left a comment
There was a problem hiding this comment.
Is source build not possible here?
|
@JohnRTitor Looking at various issues, it seems like electron-builder does not work with nix. |
pkgs/by-name/fa/falkor/package.nix
Outdated
There was a problem hiding this comment.
set hydraPlatforms = [ ]; here
There was a problem hiding this comment.
@JohnRTitor , why was this needed? Is this here to avoid caching the package? And if yes, why?
There was a problem hiding this comment.
Yes, this is to put a light load on nix cache. These packages are not source builds, so it's safe to let them build locally.
This is not required persay, but good practice.
|
There are ways to use electron-builder, though they are quite hacky. |
|
There is #279545 which could be used as an example, both are npm packages I think? |
Nope, this one is using yarn. |
|
This could work, I haven't tried it though. |
|
Looked into it, and while it would be possible to package from source, the users would have to provide their own API keys for the build, which is unfortunate. I'm guessing the prebuilt package contains the keys internally (using I doubt the package authors want us to scrape those values, so I think packaging the prebuilt app is the way to go. |
|
@TomaSajt So? Should this be merged then? |
3da92a5 to
e7175f8
Compare
|
|
nixpkgs-review couldn't build it for some reason, but I was able to build and run it successfully. |
Falkor is an Electron-based gaming hub.
Things done
nix.conf? (See Nix manual)sandbox = relaxedsandbox = truenix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/)Add a 👍 reaction to pull requests you find important.