Nix NodeJS | 209 Members | |
| 60 Servers |
| Sender | Message | Time |
|---|---|---|
| 21 May 2023 | ||
In reply to @raitobezarius:matrix.orgI've a few open yarn PRs to help that and there's a draft buildYarnPackage too we'll pick up soon | 15:27:05 | |
| and https://github.com/NixOS/nixpkgs/pull/230991? 😲 | 19:50:04 | |
| should we merge botamusique and navidrome with the npmCOnfigHook reschedule hack? | 19:50:34 | |
| * should we merge botamusique and navidrome with the npmConfigHook reschedule hack? | 19:50:39 | |
In reply to @hexa:lossy.networkGiven it unblocks those packages, I was starting to think we should just go ahead and merge the npmRoot PR and do further review items in follow-up PRs (and backport post branchoff) | 20:43:35 | |
I would like npmRoot, I was just still wondering if we wanted it on the other hooks so that it worked with buildNpmPackage and wondering if we wanted it also on fetchNpmDeps. But that doesn't need to be a blocker | 20:44:37 | |
| Did the npmRoot change work for botamusique? Because it caused problems with navidrome. | 20:44:41 | |
In reply to @hexa:lossy.networkOh really? I hadn't tested yet | 20:44:55 | |
| https://github.com/NixOS/nixpkgs/pull/230991#issuecomment-1552133508 | 20:45:17 | |
In reply to @hexa:lossy.networkWeird 🤔 | 20:46:07 | |
| I'll investigate in like ~1-2 hours (sorry for delays, day ended up with more non-computer things to do than I thought) | 20:46:45 | |
| No worries, this is a hobby after all | 20:47:25 | |
In reply to @hexa:lossy.network I cannot replicate this by cherry-picking your commit from #229953 on top of #230991 and adding this diff:
| 21:31:44 | |
Instead I just get a successfully built /nix/store/0qjbbmqfvgn9x4g9rgyvbqsfzj9bda91-navidrome-0.49.3 | 21:32:36 | |
Also the navidrome update script fails because building .go-modules in general on the derivation fails due to buildGoModule propagating nativeBuildInputs to the fetcher (???) which obviously adds the npm hook which when run, expects to be building npm stuff, not fetching go modules | 21:38:51 | |
I would say this is a bug in buildGoModule and not npmConfigHook because I imagine the same would happen with, e.g., the rust hooks | 21:39:12 | |
* I would say this is a bug in buildGoModule and not npmConfigHook because I imagine the same would happen with, e.g., the cargo/rust hooks | 21:39:16 | |
| hm ok | 21:39:38 | |
| Now for what to do about it, idk | 21:39:46 | |
There's no comment in the buildGoModule code about why it propagates nativeBuildInputs to the fetcher -- do you know why it would be doing that? | 21:40:20 | |
That seems... counterintuitive. Stuff like buildRustPackage don't do that | 21:41:11 | |
* That seems... counterintuitive. Stuff like buildRustPackage doesn't do that | 21:41:24 | |
(and you can't override the fetcher with buildGoModule either since the fetcher is still not separately exposed...) | 21:41:53 | |
Apparently buildGoModule also doesn't propagate unpackPhase or its hooks to the fetcher despite propagating src, which seems sus... | 21:48:24 | |
It looks like the evcc derivation has the exact same issue and fixes it via buildGoModule's overrideModAttrs to set a slimmer nativeBuildInputs | 21:56:58 | |
| Yeah, adding this to the derivation fixes building
| 22:03:18 | |
In reply to @lily:lily.flowersno idea | 22:03:41 | |
In reply to @lily:lily.flowersoh, right 😲 | 22:04:10 | |
In reply to @hexa:lossy.networkI just realized that was before winter fixed the PR to actually work (which is why it ended up with a pushd/popd) | 22:05:11 | |
| So yeah the npmRoot PR needs to a rebase and then I'll merge and deal with further changes in follow-ups, to unblock other stuff | 22:06:33 | |