Nix NodeJS | 194 Members | |
| 56 Servers |
| Sender | Message | Time |
|---|---|---|
| 5 May 2024 | ||
| 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 | |
| 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 | |
| welcome to nodejs hell :) | 03:42:18 | |
| how does that bug not make yarn-berry effectively useless to anyone | 03:43:22 | |
| maybe ill just work on pnpm stuff instead since that bug makes yarn-berry lock files not useful to nix... | 04:00:37 | |
| hello | 15:37:11 | |
| can i use pnpm with buildNpmPackage? | 15:48:10 | |
| no | 15:57:55 | |
In reply to @winter:catgirl.cloudif 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 | |
| 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 | |
| do i delete the pnpm lock file and turn it into an npm project? | 16:04:14 | |
| if you want | 16:04:42 | |
| does the npm tooling only work with npm project as opposed to a pnpm project?? | 16:05:22 | |
| correct | 16:05:33 | |
| the npm tooling only works with projects that have an npm lock file | 16:05:47 | |
| wait, do i have to produce a binary? | 16:13:31 | |
| no | 16:15:26 | |
| the npm tooling will automatically produce a wrapper in $out/bin if your package.json is configured properly | 16:15:45 | |
| 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 | |
| ok figured it out | 17:19:30 | |
| 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 | |
| and then saw that had a "bin" property in package.json | 17:20:40 | |
| so i tried that and it worked | 17:20:44 | |
its just i couldnt figure out what Flags to pass to makeWrapper, added to executable calling the generated .js with node as an interpreter. These scripts are defined in package.json meant | 17:22:56 | |
| 6 May 2024 | ||
In reply to @purepani:matrix.org So, apparently this is at least somewhat intended, or at least intentionally not guaranteed: https://yarnpkg.com/cli/install.
The issue is that if the repos don't use zero-install, either by choice, or just because they don't realize that it's a thing, there's no way to get any type of reproducibility since the integrety hashes aren't stored. | 02:18:01 | |
In reply to @purepani:matrix.org* So, apparently this is at least somewhat intended, or at least intentionally not guaranteed: https://yarnpkg.com/cli/install.
The issue is that if the repos don't use zero-install, either by choice, or just because they don't realize that it's a thing, there's no way to get any type of reproducibility since the integrety hashes aren't stored. | 02:18:20 | |
| * So, apparently this is at least somewhat intended, or at least intentionally not guaranteed: https://yarnpkg.com/cli/install.
The issue is that if the repos don't use zero-install, either by choice, or just because they don't realize that it's a thing, there's no way to get any type of reproducibility since the integrety hashes aren't stored. | 02:18:26 | |
| * So, apparently this is at least somewhat intended, or at least intentionally not guaranteed: https://yarnpkg.com/cli/install.
Specifically, they say
The issue is that if the repos don't use zero-install, either by choice, or just because they don't realize that it's a thing, there's no way to get any type of reproducibility since the integrety hashes aren't stored. | 02:18:32 | |
| 05:39:41 | ||
| 7 May 2024 | ||
| Hello, just wondering what the process is for building my project locally from my Flake output. I think the problem is how Flakes handle files in When I don't do that, the build fails with message: I try to build the package using I don't define any custom
Any ideas on how to get this to work? | 08:05:28 | |