Nix NodeJS | 211 Members | |
| 60 Servers |
| Sender | Message | Time |
|---|---|---|
| 22 May 2023 | ||
In reply to @raitobezarius:matrix.orgLike the output, or am I misunderstanding? | 12:17:33 | |
In reply to @lily:lily.flowersyes this | 12:17:45 | |
In reply to @lily:lily.flowersDefinitely! Thank you very much | 20:05:25 | |
| 24 May 2023 | ||
In reply to @raitobezarius:matrix.org You're just wanting something like this on
| 00:21:33 | |
Wait are you wanting (buildNpmPackage { ... }).nodejs to be available or something just like buildNpmPackage.nodejs? | 00:22:23 | |
In reply to @robert:funklause.deOpened as https://github.com/NixOS/nixpkgs/pull/233804 and tested against your second commit in your bitwarden-cli PR :) | 11:18:28 | |
Oh I just noticed your comment about npm prune --workspace being non-ideal. That seems bizarre to me, and remove the --workspace on the prune command didn't seem to reduce output size 🤔 | 11:23:52 | |
* Oh I just noticed your comment about npm prune --workspace being non-ideal. That seems bizarre to me, and removing the --workspace on the prune command didn't seem to reduce output size 🤔 | 11:23:59 | |
| I'll investigate later today hopefully | 11:24:08 | |
| 25 May 2023 | ||
| 13:32:24 | ||
| 13:37:28 | ||
| 27 May 2023 | ||
| 16:41:01 | ||
| 28 May 2023 | ||
| 13:29:10 | ||
Hey y'all! Let's say I pick a rfew nodePakcages e.g "nodePackages.three|mathjax", what would a one liner say using nix-shell where then I can run node and require("three")? | 13:34:44 | |
I think we would need setup hooks that set NODE_PATH. Which actually would probably be a good idea to add to the nodejs derivation | 13:41:51 | |
| Hmmm if I remember later I'll experiment with adding that | 13:42:18 | |
| Okay. Something similar to haskellPackages.ghcWithPackages would be handy, say:
| 14:06:45 | |
Well it would be something like nodejs.withPackages probably but also nodePackages is gonna go away and/or be redone before that's viable... | 14:08:49 | |
| I see. I don't think it's too big a stretch to proposing the Nth package manager for NodeJS ecosytem, after now pnpm. | 14:10:06 | |
| I think Nix has the potential to be the right one :) | 14:10:19 | |
| But still need that Nth nix node builder though too. | 14:10:54 | |
| Or is buildNpmPackage targeting that? | 14:11:25 | |
| * Or is buildNpmPackage targeting that role? | 14:11:27 | |
buildNpmPackage is really more for leaf-like application-level npm packages | 14:12:03 | |
| At some point we may end up trying to build out a real Nix-based node package set, but npm dependencies go really deep. Unlike how other package sets like python generally are | 14:14:08 | |
| So I doubt it'll really be worth it tbh | 14:14:23 | |
| We'll probably aim for more like how the rust stuff works | 14:14:35 | |
I want to have something like importCargoLock but for package-lock.json but it's far down on the backburner rn | 14:15:12 | |
Indeed. I wonder if it's inherit to node, or just how npm/yarn works. | 14:21:15 | |
In reply to @hellwolf:matrix.orgTbh just how any similar system works. See Mix/Elixir, Rust/Cargo, Go, etc. Those don't go as deep as npm but they do get large | 14:23:00 | |