Nix NodeJS | 194 Members | |
| 56 Servers |
| Sender | Message | Time |
|---|---|---|
| 13 Apr 2024 | ||
| * What are you looking for in particular? Packaging, development shell(s) or something else? | 13:26:40 | |
| Changing my workflow to involve flakes? | 13:28:35 | |
In reply to @tumble1999:matrix.orgwhat are you wanting flakes to get you? using flakes just for using flakes won't automatically give you much | 13:30:11 | |
| packages are only installed when nececery thats how i see it also if i go on anouther system (that doesnt have nixos but does have nix), i wont have to install stuff just use the flake and everything will set its self up | 13:41:51 | |
| I guess you confuse flakes with shells. Shells are not coupled with flakes. You don't need to understand the concept of flakes to use shells | 13:43:37 | |
| flakes let you get specific versions of things though dont they | 13:45:56 | |
| Sure you can pin nixpkgs, though you can also do this with standard nix derivations | 13:49:59 | |
| also using a flake with my nixos config makes channels easier to manage | 13:51:03 | |
| Using flakes for devshells is a good approach ime. For nodejs you don't need anything special in most projects. Just use a normal devshell inside a flake and use the relevant packages, like `nodejs`, as build inputs. | 13:55:50 | |
| There are also some more elaborate setups possible, like setting a specific nodejs version for your nixpkgs instance used in the devshells. | 13:57:55 | |
would it ever need to go in .packages/.app for doing stuff like nix run | 13:59:03 | |
| `nix run` stuff is the `apps` output iirc. | 13:59:34 | |
| i think nix dev applys to devshells though falls back to app and then package and nix run applyes to app and falls back to package | 14:00:18 | |
In reply to @c0ba1t:matrix.orgboth apps and packages | 14:00:45 | |
nix build .packagesnix run .app .packagesnix develop .devShells .app .packagesnix init .templates | 14:02:00 | |
* nix build .packagesnix run .apps .packagesnix develop .devShells .apps .packagesnix init .templates | 14:02:17 | |
| 16:04:46 | ||
| 15 Apr 2024 | ||
| 10:45:29 | ||
| 16 Apr 2024 | ||
| 16:46:31 | ||
| Why can't I
I see that
I guess I somehow need to add my require for mongosh/autocomplete to that mongosh.js file? I thought that because | 16:51:18 | |
| 17 Apr 2024 | ||
| 04:36:36 | ||
| 05:34:06 | ||
| 25 Apr 2024 | ||
| 03:36:37 | ||
Hi, does someone know how get buildNpmPackage working with npm workspaces? It appears to not properly merge the node_modules from the workspace and the root, resulting in missing dependencies | 16:00:26 | |
In reply to @c0ba1t:matrix.orgit does handle them (assuming they are npm workspaces and not the fake ones lerna and such mash together) | 16:17:37 | |
| can you share derivation? | 16:17:41 | |
In reply to @lily:lily.flowershttps://git.tu-berlin.de/proveit/proveit.nix/-/blob/main/pkgs/proofbuddy.nix?ref_type=heads#L89 | 16:20:59 | |
| I can also share the package.json files but the source code is unfortunately not public | 16:21:18 | |
| yes, please share the package.json of the root workspace dir, of the workspace package, and the package-lock.json of the root workspace dir | 16:22:00 | |
| (you can DM if you prefer) | 16:22:08 | |