-
-
Notifications
You must be signed in to change notification settings - Fork 15k
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
nodePackages: are (mostly) broken #5450
Comments
What help do you need? |
Well sander has changed a lot of things in generated expressions, he made
|
@svanderburg are you planing to get your npm2nix fork into nixpkgs tree? |
@iElectric @offlinehacker Hi, integration of the new npm2nix is possible, but it has one major drawback. It relies on a trick in which Nix expressions are generated inside a derivation that gets imported, which is a controversial feature. @rbvermaa for example was very critical about this and I also want to avoid it if I can. Although the new npm2nix works fine for me, I'm not sure this issue is a blocker. I have an alternative solution in mind in which I try to propagate the resolve dependencies ahead of time (e.g. npm2nix calculates them and generates the expressions accordingly), but that generates bigger and more complicated Nix expressions and requires a bit of work. We can also simply accept that the new npm2nix has this drawback, proceed, and solve this issue later. I'm not sure what you think? |
Another alternative would be usage of fromJSON, but i don't think importing Currently i think any solution that works (deterministically) is better It's a blocker, if i can't package nodejs packages in a sane way and if
|
👍 on replacing broken solution with working solution that needs On Wed, Dec 24, 2014, 2:00 PM Jaka Hudoklin [email protected]
|
Ok, i analyzed solution from @svanderburg and as far as i can see it can be done simpler, but still thanks for providing all the solutions. I will try to fix current buildNodePackage, with these changes #4922 and all the great stuff @svanderburg has done. |
@svanderburg What's the benefit behind this smart version detection for recursive dependencies? As far as i understand it should not matter if only exact versions are matched, then it's up to npm to choose what he wants and from nix point of view it works. |
Closing this, as it was fixed. |
We need to replace current implementation with what has @svanderburg done in https://github.com/svanderburg/npm2nix/tree/reengineering, but i need your help to do that. I'm currently unable to make some packages and nixos modules, because of that.
The text was updated successfully, but these errors were encountered: