-
-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
Add io.js #6234
Add io.js #6234
Conversation
Yes, it should suffice to just do the override in |
It matters whether Node.js or io.js is used at build time, since the "binaries" will either have a Node.js or io.js shebang depending on what they were built with. One might want to use io.js in place of Node.js for all packages, and thus not depend on Node.js anywhere. I had to apply a fix in Also I realized I could build io.js without |
The node setupHook is for setting |
Well, I just think Also there's no |
The |
Oh okay, I get it. I just added it back, thanks for the explanation. |
Of course, as long as io.js also uses NODE_PATH :P |
Yup io.js still uses Looks like there's a strange error during the Travis build:
I'll dig this tonight, but at first sight I don't get why io.js would make a Bad Request to npm URL. |
If the previous error was about BTW I see that |
Yes if derivation names are ambiguous of course nix-env just chooses one. |
When you update pull requests, please comment. We don't get notified otherwise. |
I just rebased on Anyway, On Travis side, it seems to have killed the process because it was taking too much time (or log size too big, that's the only "error" I see). |
I've noticed that iojs compiles a lot of stuff statically. Let's use the existing libraries present in nixpkgs instead:
Still missing libuv which is not packaged, and v8 because it's still at version 3 while I think iojs requires version 4. I believe nodejs has the same problem, but well let's start fixing this in iojs. As for stream-splitter-transforms, also nodePackages fails so I don't see the problem. Note that So once you apply the above diff (if you agree), I'm going to merge this. |
@lethalman courtesy <#6234 (comment)>.
Thank you for the shared libraries, I was not sure how to do that (but I see Nix make this really simple in the end, awesome)! |
BTW libuv seems to be packaged already, but io.js uses libuv 1.4.0 which is not in nixpkgs yet. |
Ok let's merge and see what happens. Thanks. Will revert in case it breaks much stuff and reiterate. |
https://iojs.org/
I copied a bit
nodejs/default.nix
to make the io.js derivation, though It's my first "real" package and I don't know how to handle eventual shared dependencies, and I removed Darwin specific stuff since I have no Mac to try it.I successfully built io.js both stable and nightly with this derivation on NixOS.
Also since io.js is Node.js compatible, there's maybe more to do, for example allow to build npm packages with io.js instead of Node.js (not sure this is possible actually, maybe something like
nodePackages.override { nodejs = iojs }
could work?).