| 13 Oct 2023 |
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 |
@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. Without it 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:26:09 |
Lily Foster | Yeah, i also feel that we do not make nix* documentation particularly discoverable or accessible, unfortunately :(
(i know for nodejs stuff it's a bandwidth problem because i've mostly been having to maintain stuff alone and haven't had sufficient motivation to write more docs than i have) | 16:27:52 |
@ThorHop:matrix.org | I have the memory of a goldfish -.-; it really sucks | 16:28:00 |
Cobalt | Are there any mid-sized, open-source projects using nixpkg's buildNpmPackage? Maybe linking to them as examples might be useful | 16:53:32 |
Lily Foster | In reply to @c0ba1t:matrix.org Are there any mid-sized, open-source projects using nixpkg's buildNpmPackage? Maybe linking to them as examples might be useful Using downstream or packaged with it in nixpkgs? | 16:58:45 |
Cobalt | Downstream, though examples from nixpkg's might be nice too. | 17:00:20 |
Cobalt | In general just tested and used examples. Ofc nixpkg's might be good too but imo it's sometimes a bit too complex | 17:01:19 |
| 14 Oct 2023 |
Dandellion | Does buildNpm have troubles with sourcehut git sources? I'm trying to build https://gitdab.com/cadence/out-of-your-element but I'm getting:
out-of-your-element> unpacking sources
out-of-your-element> unpacking source archive /nix/store/8xka9inmpaq7qb0g1s80r9qvnilidpb8-source
out-of-your-element> source root is source
out-of-your-element> patching sources
out-of-your-element> Executing npmConfigHook
out-of-your-element> Configuring npm
out-of-your-element> Validating consistency between /build/source/package-lock.json and /nix/store/ydflkz6y8r7a1wm0q29r6nqmgv3n2wyj-out-of-your-element-1.2-npm-deps/package-lock.json
out-of-your-element> Fixing lockfile
out-of-your-element> Making cache writable
out-of-your-element> Installing dependencies
out-of-your-element> npm verb cli /nix/store/x8vrc1c6r8nn454whr99bxc5hdy5ybjf-nodejs-18.18.0/bin/node /nix/store/x8vrc1c6r8nn454whr99bxc5hdy5ybjf-nodejs-18.18.0/bin/npm
out-of-your-element> npm info using npm@9.8.1
out-of-your-element> npm info using node@v18.18.0
out-of-your-element> npm verb title npm ci
out-of-your-element> npm verb argv "ci" "--ignore-scripts" "--loglevel" "verbose"
out-of-your-element> npm verb logfile logs-max:10 dir:/build/cache/_logs/2023-10-14T03_08_27_400Z-
out-of-your-element> npm verb logfile /build/cache/_logs/2023-10-14T03_08_27_400Z-debug-0.log
out-of-your-element> npm WARN tarball tarball data for discord-markdown@git+https://git.sr.ht/~cadence/nodejs-discord-markdown#abc56d544072a1dc5624adfea455b0e902adf7b3 (null) seems to be corrupted. Trying again.
out-of-your-element> npm WARN tarball tarball data for discord-markdown@git+https://git.sr.ht/~cadence/nodejs-discord-markdown#abc56d544072a1dc5624adfea455b0e902adf7b3 (null) seems to be corrupted. Trying again.
out-of-your-element> npm http fetch GET 200 https://codeload.github.com/cloudrac3r/mixin-deep/tar.gz/2dd70d6b8644263f7ed2c1620506c9eb3f11d32a 263ms (cache stale)
out-of-your-element> npm http fetch GET 200 https://codeload.github.com/cloudrac3r/tap-out/tar.gz/1b4ec6084aedb9f44ccaa0c7185ff9bfd83da771 242ms (cache stale)
out-of-your-element> npm http fetch GET 200 https://codeload.github.com/cloudrac3r/tap-dot/tar.gz/9dd7750ececeae3a96afba91905be812b6b2cc2d 244ms (cache stale)
out-of-your-element> npm http fetch GET 200 https://codeload.github.com/cloudrac3r/giframe/tar.gz/1630f4d3b2bf5acd197409c85edd11e0da72d0a1 274ms (cache stale)
out-of-your-element> npm verb stack Error: An unknown git error occurred
out-of-your-element> npm verb stack at makeError (/nix/store/x8vrc1c6r8nn454whr99bxc5hdy5ybjf-nodejs-18.18.0/lib/node_modules/npm/node_modules/@npmcli/git/lib/make-error.js:28:13)
out-of-your-element> npm verb stack at /nix/store/x8vrc1c6r8nn454whr99bxc5hdy5ybjf-nodejs-18.18.0/lib/node_modules/npm/node_modules/@npmcli/git/lib/spawn.js:37:26
out-of-your-element> npm verb stack at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
out-of-your-element> npm verb cwd /build/source
out-of-your-element> npm verb Linux 6.5.5
out-of-your-element> npm verb node v18.18.0
out-of-your-element> npm verb npm v9.8.1
out-of-your-element> npm ERR! code ENOENT
out-of-your-element> npm ERR! syscall spawn git
out-of-your-element> npm ERR! path git
out-of-your-element> npm ERR! errno -2
out-of-your-element> npm ERR! enoent An unknown git error occurred
out-of-your-element> npm ERR! enoent This is related to npm not being able to find a file.
out-of-your-element> npm ERR! enoent
out-of-your-element> npm verb exit -2
out-of-your-element> npm verb unfinished npm timer reify 1697252907725
out-of-your-element> npm verb unfinished npm timer reify:unpack 1697252907754
out-of-your-element> npm verb unfinished npm timer reifyNode:node_modules/discord-markdown 1697252907764
out-of-your-element> npm verb code -2
| 03:14:41 |