| 13 Oct 2023 |
@ThorHop:matrix.org | Should I try with the small one maybe? | 14:14:35 |
@ThorHop:matrix.org | 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 |
Lily Foster | In reply to @ThorHop:matrix.org 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. Flake | 14:21:11 |
@ThorHop:matrix.org | nixpkgs-unstable | 14:22:22 |
Lily Foster | 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 |
@ThorHop:matrix.org | 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 |
@ThorHop:matrix.org | * 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 |
Lily Foster | In reply to @ThorHop:matrix.org 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? You need pkgs-config in nativeBuildInputs and vips in buildInputs if sharp is a dep | 15:50:06 |
Lily Foster | That prevents it from downloading binary and it builds it instead | 15:50:16 |
Lily Foster | We need to document "common dependency quirks" like that somewhere... | 15:50:50 |
Cobalt | In reply to @lily:lily.flowers We need to document "common dependency quirks" like that somewhere... I 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 |
Lily Foster | (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 |
Cobalt | It's a pain to figure out at the beginning why node-gyp fails to build yet another transitive dependency | 15:53:17 |
Lily Foster | In reply to @c0ba1t:matrix.org It's a pain to figure out at the beginning why node-gyp fails to build yet another transitive dependency Tbh i've thought about just having buildNpmPackage default to including python3 in nativeBuildInputs for that reason | 15:53:58 |
Lily Foster | (And because it won't actually increase the derivation closure size) | 15:54:21 |
Cobalt | In reply to @lily:lily.flowers (hey if anyone likes writing docs and wants to join the nixpkgs nodejs team (pls i need more people to work with ðŸ˜)) Maybe you have some good "first issues" to point too? Would love to change from consumer to contributor eventually | 15:54:29 |
Lily Foster | I may still do that | 15:54:34 |
Cobalt | * In reply to @lily:lily.flowers
(hey if anyone likes writing docs and wants to join the nixpkgs nodejs team (pls i need more people to work with ðŸ˜))
Maybe you have some good "first issues" to point to? Would love to change from consumer to contributor eventually | 15:54:45 |
Lily Foster | In reply to @c0ba1t:matrix.org
In reply to @lily:lily.flowers (hey if anyone likes writing docs and wants to join the nixpkgs nodejs team (pls i need more people to work with ðŸ˜))
Maybe you have some good "first issues" to point to? Would love to change from consumer to contributor eventually We have a project board that you could yoink from the "todo" list that isn't being actively worked on. But they aren't really "good first issues" unfortunately... | 15:55:24 |
Lily Foster | I wonder if i should get that added to the room topic | 15:56:44 |
Lily Foster | Actually let me check what it even says right now, i don't actually know | 15:57:01 |
Lily Foster | Ah it does not have anything set rn | 15:57:28 |
@ThorHop:matrix.org | Well I'll be scraggly 😄 Tis working! | 16:11:25 |
@ThorHop:matrix.org | nativeBuildInputs = with pkgs; [pkg-config python3];
buildInputs = with pkgs; [vips];
These two were very important.
| 16:12:14 |
@ThorHop:matrix.org | FYI, for your documentation? Please include whole example files. I mean small nix files, by all means. But if you provide users with examples that can be fully evaluated on the spot it helps the learning process, and more people will click the links... meaning it can surf passed other search results... and using search engines for solutions to nix problems is kind of painful =/ | 16:13:41 |
@ThorHop:matrix.org | * FYI, for your documentation? Please include whole example files. I mean small nix files, by all means. But if you provide users with examples that can be fully evaluated on the spot it helps the learning process, and more people will click the links... meaning it can surf passed other search results... and using search engines for solutions to nix problems is currently kind of painful =/ | 16:15:16 |
Lily Foster | Oh yeah python3 is needed for node-gyp stuff in general, including sharp | 16:20:43 |
Lily Foster | In reply to @ThorHop:matrix.org FYI, for your documentation? Please include whole example files. I mean small nix files, by all means. But if you provide users with examples that can be fully evaluated on the spot it helps the learning process, and more people will click the links... meaning it can surf passed other search results... and using search engines for solutions to nix problems is currently kind of painful =/ Yeah we definitely need that | 16:20:48 |
Lily Foster | There's only one example derivation rn in the docs iirc and it's not very informative. Just the bare basic you can do with buildNpmPackage | 16:21:15 |
@ThorHop:matrix.org | Like for me, with my learning disability, it's hard when it's not clear what the difference between certain functions or methods are, and i sort of require the full context in front of me to "learn by doing" so to speak - sometimes even simple explanations and reminders of basic things supercharges my learning process. So suddenly I have to hop around search queries when the documentation isn't clear enough, test, and test, then test some more until I reach some solution. So I'm having an extra hard time learning nix ^^; But eh, nix is what I need for my future projects, so I have to paddle through it. | 16:24:40 |