Nix NodeJS | 208 Members | |
| 58 Servers |
| Sender | Message | Time |
|---|---|---|
| 12 Oct 2023 | ||
| 07:57:03 | ||
| Making progress with mkYarnPackage, but now I'm stuck with a dir
| 12:02:21 | |
| oh wait I just had to override installPhase, nvm | 12:05:40 | |
| hi, i am trying to package nativescript-cli with buildNpmPackage, i get an error
checking the repo, | 12:47:52 | |
In reply to @jfvillablanca:matrix.orgCan you share full log? That copy is already done for your in unpackPhase | 12:52:04 | |
| https://pastebin.com/0MsCVDKv there are some weird characters in there, maybe from the redirect to the log file | 12:57:26 | |
| This is the more relevant error:
| 13:02:06 | |
Can you get another log with npmFlags = [ "--loglevel=verbose" ] on the derivation? | 13:04:15 | |
| https://pastebin.com/d4mbWiS7 | 13:12:20 | |
| 13 Oct 2023 | ||
| 10:27:20 | ||
| So the last couple of days I've been trying to package the statics website generated from an npm process, but I keep getting the error: | 14:02:58 | |
| Lily Foster Is this still due to that PR you've been waiting on? | 14:03:13 | |
| Looks like it, that's at least the same error code | 14:08:08 | |
| I hope so, because I've been slamming my head against the wall with learning this process the last couple of days ^^; might have to upload my flake and nix files just to make sure it isn't my sucky programming "skills". | 14:12:01 | |
| What channel are you on? | 14:12:57 | |
| Oh the fix hasn't hit unstable yet anyway | 14:13:35 | |
| https://nixpk.gs/pr-tracker.html?pr=260011 | 14:13:39 | |
| That's the one ^^; guess I gotta wait a lil bit. | 14:14:06 | |
| Should I try with the small one maybe? | 14:14:35 | |
| Lily Foster Wait, do you mean system wide (i.e the one I have running) or for the flake? I am using nixpkgs-unstable as the input. | 14:15:57 | |
In reply to @ThorHop:matrix.orgFlake | 14:21:11 | |
| nixpkgs-unstable | 14:22:22 | |
| Yeah you could just wait on channel update or temporarily switch to master, fetch once, and then you can switch back since the cached npm deps will already be in nix store then | 14:28:35 | |
Now I'm getting an error sharp: Are you trying to install as a root or sudo user?. Apparently sharp tries to download a binary? | 15:47:52 | |
* Now I'm getting an error sharp: Installation error: EACCES: permission denied. Apparently sharp tries to download a binary and nix doesn't like that? | 15:48:29 | |
In reply to @ThorHop:matrix.orgYou need pkgs-config in nativeBuildInputs and vips in buildInputs if sharp is a dep | 15:50:06 | |
| That prevents it from downloading binary and it builds it instead | 15:50:16 | |
| We need to document "common dependency quirks" like that somewhere... | 15:50:50 | |
In reply to @lily:lily.flowersI don't know if that's possible but it would also be a big Qol thing to include common requirements, like poetry2nix, for, e.g., pkg-config, openssl, ... that are automatically applied when needed. | 15:52:33 | |
| (hey if anyone likes writing docs and wants to join the nixpkgs nodejs team (pls i need more people to work with 😭)) | 15:52:40 | |