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

npm2nix: 6.0.0 #15045

Closed
wants to merge 1 commit into from
Closed

npm2nix: 6.0.0 #15045

wants to merge 1 commit into from

Conversation

gilligan
Copy link
Contributor

@gilligan gilligan commented Apr 27, 2016

This is a first PR to work towards what was discussed in #14532

The reengineering branch by @svanderburg is a big improvement on NixOS/npm2nix version. I hope you are fine with me packaging it.

/cc @zimbatm

Edit: I first tried to actually remove npm2nix from node-packages.json / node-packages-generated not realizing that the new npm2nix version generates output that is not compatible with the previous one. I amended it to only add the package for now.

@puffnfresh
Copy link
Member

@gilligan yes, you modified pkgs/top-level/default.nix which I don't think you want to do.

@puffnfresh
Copy link
Member

Otherwise 👍

@gilligan
Copy link
Contributor Author

@puffnfresh eeek. I screwed up somehow.. fix incoming shortly haha :)

@grahamc
Copy link
Member

grahamc commented Apr 27, 2016

Not sure about these diff stats:

48,922 additions, 50,841 deletions not shown because the diff is too large.

@gilligan
Copy link
Contributor Author

Sorry everyone.. i somehow accidentally replaced the entire pkgs/top-level/default.nix with some nonsense ... FIxed now.

inherit (python3Packages) python;
inherit (purePackages) gl;
};

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you drop these whitespace changes ? not against it but they are unrelated to the PR

@zimbatm
Copy link
Member

zimbatm commented Apr 27, 2016

Does npm2nix itself need to be inspected as well ?

According to our conventions I think the commit should be named npm2nix: init at 6.0 since it's a new package.

@gilligan
Copy link
Contributor Author

Does npm2nix itself need to be inspected as well ?

I am hoping to hear from @svanderburg that he is OK with this.

description = "Generate nix expressions to build npm packages";
homepage = http://github.com/svanderburg/npm2nix/tree/reengineering2;
platforms = with platforms; linux ++ darwin;
};
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

add yourself perhaps as maintainer?

@gilligan gilligan mentioned this pull request Apr 28, 2016
2 tasks
@@ -2195,7 +2195,9 @@ in
else
nodePackages_4_x;

npm2nix = nodePackages.npm2nix;
npm2nix = callPackage ../development/tools/npm2nix {
inherit fetchFromGitHub;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is inherit actually required here? I'd think callPackage would be able to fill it in.

@offlinehacker
Copy link
Contributor

offlinehacker commented May 2, 2016

There's this alternative deterministic package manager for nodejs called ied https://github.com/alexanderGugel/ied that took ideas explicitly from nix, that would be really simple to generate nix expressions from. I would suggest to rather make a simple solution based on ied, as continue to have complex solution as is now. And as far as i looked, it's doable, but of course somebody has to do it.

@gilligan
Copy link
Contributor Author

gilligan commented May 3, 2016

ied is not even close to be feature complete and thus sadly not a feasible replacement for now - plus considerable effort has been invested into npm2nix which is a working solution which shouldn't just be discarded.

My 2 cents ;)

@zimbatm
Copy link
Member

zimbatm commented May 5, 2016

@gilligan what is the license of npm2nix ? I see a warning emitted by npm that the field is missing.

@zimbatm
Copy link
Member

zimbatm commented May 5, 2016

npm install is trying to access the network so it won't work with the sandboxed builds. not sure why nox-review hasn't caught that.

@joachifm
Copy link
Contributor

joachifm commented May 7, 2016

@zimbatm I think travis uses unsandboxed builds.

@garbas
Copy link
Member

garbas commented Jul 22, 2016

@gilligan @svanderburg is this PR obsolete?

@gilligan
Copy link
Contributor Author

Oh, yes indeed

@gilligan gilligan closed this Jul 24, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants