Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can I use nar with Electron? #122

Open
abacaj opened this issue Dec 19, 2015 · 1 comment
Open

Can I use nar with Electron? #122

abacaj opened this issue Dec 19, 2015 · 1 comment
Labels

Comments

@abacaj
Copy link

abacaj commented Dec 19, 2015

Curious to see if nar can serve as the run-time for an electron application. (https://github.com/atom/electron)

I don't see why not, and has anyone done this - it seems like a match made in heaven.

@h2non
Copy link
Owner

h2non commented Dec 20, 2015

Never tried, to be honest, but it should work. electron is a native node.js package, so it's platform specific. I think that's the unique constrain.

For instance, if you create the nararchive in OSX, and then you want to run it in Linux, you won't be able to do it. As solution, you can re-build electron on the flight from npm scripts -> preinstall command hook. Other users did this without troubles when working with native packages.

You should be able embed electron as tree or global dependency in nar.
Give it a try and let me know. It would be great to create a mini tutorial about the process, other users would be interested in solutions like this.

@h2non h2non added the question label Dec 20, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants