| 30 Apr 2024 |
Cobalt | In reply to @lily:lily.flowers oooof. well marsam left and i'm recovering from surgery, so someone else will probably have to bump the nodejs derivation It looks like the fix for the upstream issue was merged today. Though, by the comments on the MR, it will likely take a bit until a patch release will be published. So there's no need to hurry here. | 21:27:35 |
Cobalt | I'll try to make a PR when 20.0.1 gets released. | 21:28:23 |
Lily Foster | In reply to @c0ba1t:matrix.org It looks like the fix for the upstream issue was merged today. Though, by the comments on the MR, it will likely take a bit until a patch release will be published. So there's no need to hurry here. (well hurry or not, i'm just making clear i don't think anyone from nodejs team will be touching it any time soon) | 21:46:15 |
Lily Foster | In reply to @c0ba1t:matrix.org I'll try to make a PR when 20.0.1 gets released. i assume you mean 22.0.1, but thank you! | 21:46:36 |
| 1 May 2024 |
| NixOS Moderation Botchanged room power levels. | 15:06:24 |
| 2 May 2024 |
| mac joined the room. | 03:33:06 |
| TimekillerTK joined the room. | 04:11:49 |
| Winter joined the room. | 21:02:51 |
| 4 May 2024 |
| purepani joined the room. | 01:59:39 |
| 5 May 2024 |
purepani | Hey Lily Foster I was maybe considering looking at the buildYarnPackage PR, and was wondering if you had a short rundown of stuff that needs to be done; I haven't tried looking through it yet, and am not too familiar with nodejs stuff, so it'd good to have a shortlist of tasks | 02:53:20 |
purepani | maybe i won't be working on it too much though...this being unfixed so far is a bit insane: https://github.com/yarnpkg/berry/issues/6068 | 03:38:29 |
Winter | welcome to nodejs hell :) | 03:42:18 |
purepani | how does that bug not make yarn-berry effectively useless to anyone | 03:43:22 |
purepani | maybe ill just work on pnpm stuff instead since that bug makes yarn-berry lock files not useful to nix... | 04:00:37 |
Tumble | hello | 15:37:11 |
Tumble | can i use pnpm with buildNpmPackage? | 15:48:10 |
Winter | no | 15:57:55 |
Tumble | In reply to @winter:catgirl.cloud no if i have a repo with pnpm project and i have anouther repo thats a nixos config flake
could i make the config repo get the other repo and run them in a systemd?
i was thinking of the project repo being a flake that outputs a package or something
and the config repo has it as an input and send it to the nix config wich sets up the service | 16:02:16 |
Winter | yes, but you'll need to package your project first. there are various pnpm nix things that work, but i can really only vouch for the npm tooling being the most resistant to all of the awful hacks that is the node.js ecosystem. | 16:03:35 |
Tumble | do i delete the pnpm lock file and turn it into an npm project? | 16:04:14 |
Winter | if you want | 16:04:42 |
Tumble | does the npm tooling only work with npm project as opposed to a pnpm project?? | 16:05:22 |
Winter | correct | 16:05:33 |
Winter | the npm tooling only works with projects that have an npm lock file | 16:05:47 |
Tumble | wait, do i have to produce a binary? | 16:13:31 |
Winter | no | 16:15:26 |
Winter | the npm tooling will automatically produce a wrapper in $out/bin if your package.json is configured properly | 16:15:45 |
Tumble | nix build puts everything into result/lib/node_modules/(name)
but nix run tries to run /nix/store/.../bin/(name) which doesnt exist | 17:01:53 |
Tumble | ok figured it out | 17:19:30 |
Tumble | i searched github for a repo that has both buildNpmPackage and dontNpmBuild
https://github.com/ALT-F4-LLC/kickstart.nix/tree/f6385349c4dff04e3090559ff553492abd6f7e2d/template/nodejs-backend | 17:20:25 |